2 Copyright (C) 2001, 2006 United States Government
3 as represented by the Administrator of the
4 National Aeronautics and Space Administration.
7 package gov
.nasa
.worldwind
;
13 public class PickedObjectList
extends java
.util
.ArrayList
<PickedObject
>
15 public PickedObjectList()
19 public PickedObjectList(PickedObjectList list
) // clone a shallow copy
24 public PickedObject
getTopPickedObject()
26 int size
= this.size();
30 for (PickedObject po
: this)
38 { // if we are here, then no objects were mark as 'top'
45 public Object
getTopObject()
47 PickedObject po
= this.getTopPickedObject();
48 return po
!= null ? po
.getObject() : null;
51 public PickedObject
getTerrainObject()
53 for (PickedObject po
: this)