fr.emn.lite
Class PickedList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.AbstractSequentialList
              extended byjava.util.LinkedList
                  extended byfr.emn.lite.PickedList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable
Direct Known Subclasses:
MyPickedList

public class PickedList
extends java.util.LinkedList

Version:
Author:
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
PickedList()
           
 
Method Summary
 void add(int index, java.lang.Object element)
           
 boolean add(java.lang.Object element)
           
 boolean containsObject(Lite l)
          Returns true if the given Lite object is in the list
 Lite[] getAll()
          Returns all picked objects
 java.util.Vector getAllInVector()
          Returns all picked objects
 Lite getNearest()
          Returns the geometrically nearest lite object
 Lite getNearest(java.lang.Class liteClass)
          Returns the geometrically nearest lite object of the given class.
 Lite getTop()
          Returns the top picked object, i.e. the object that is displayed last.
 Lite getTop(java.lang.Class liteClass)
          Returns the top picked object of the given class.
 java.lang.String toString()
           
 
Methods inherited from class java.util.LinkedList
addAll, addAll, addFirst, addLast, clear, clone, contains, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, remove, remove, removeFirst, removeLast, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

PickedList

public PickedList()
Method Detail

add

public void add(int index,
                java.lang.Object element)

add

public boolean add(java.lang.Object element)

containsObject

public boolean containsObject(Lite l)
Returns true if the given Lite object is in the list


getNearest

public Lite getNearest()
Returns the geometrically nearest lite object


getNearest

public Lite getNearest(java.lang.Class liteClass)
Returns the geometrically nearest lite object of the given class.


getTop

public Lite getTop()
Returns the top picked object, i.e. the object that is displayed last.


getTop

public Lite getTop(java.lang.Class liteClass)
Returns the top picked object of the given class.


getAll

public Lite[] getAll()
Returns all picked objects


getAllInVector

public java.util.Vector getAllInVector()
Returns all picked objects


toString

public java.lang.String toString()