|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
org.geotools.gui.tools.ToolListImpl
A list of tools provided by the MapViewer to the operator, including the
selectedTool which is the current tool in use. An event is sent to
interested classes when the selectedTool changes.
No event is sent if a tool is added or removed from the ToolList as the
ToolList is expected to be set up once at startup and not change after
that.
| Field Summary |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
ToolListImpl()
Creates a new instance of ToolList. |
|
| Method Summary | |
void |
addSelectedToolListener(SelectedToolListener listener)
Register interest in being called when Tool changes. |
void |
clear()
Removes all of the elements from this collection (optional operation). |
protected void |
fireSelectedToolListener()
Send events to all SelectedToolListeners. |
Tool |
getSelectedTool()
Get the tool. |
java.lang.Object |
remove(int index)
Removes the element at the specified position in this list (optional operation). |
boolean |
remove(java.lang.Object o)
Removes a single instance of the specified element from this collection, if it is present (optional operation). |
boolean |
removeAll(java.util.Collection c)
Removes all this collection's elements that are also contained in the specified collection (optional operation). |
void |
removeSelectedToolListener(SelectedToolListener listener)
Remove interest in bening notified when Tool changes. |
boolean |
retainAll(java.util.Collection c)
Retains only the elements in this collection that are contained in the specified collection (optional operation). |
java.lang.Object |
set(int index,
java.lang.Object element)
Replaces the element at the specified position in this list with the specified element (optional operation). |
void |
setSelectedTool(int i)
Set the tool. |
void |
setSelectedTool(Tool selectedTool)
Set the tool. |
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, removeRange, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
containsAll, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
add, add, addAll, addAll, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, size, subList, toArray, toArray |
| Constructor Detail |
public ToolListImpl()
| Method Detail |
public void addSelectedToolListener(SelectedToolListener listener)
addSelectedToolListener in interface ToolListlistener - The object to notify when tool changes.public void removeSelectedToolListener(SelectedToolListener listener)
removeSelectedToolListener in interface ToolListlistener - The listener.protected void fireSelectedToolListener()
public Tool getSelectedTool()
getSelectedTool in interface ToolListpublic void setSelectedTool(int i)
setSelectedTool in interface ToolListi - The index of the selected tool.public void setSelectedTool(Tool selectedTool)
setSelectedTool in interface ToolListselectedTool - The new tool.public void clear()
null.
clear in interface java.util.Listpublic java.lang.Object remove(int index)
remove in interface java.util.Listindex - the index of the element to removed.
public boolean remove(java.lang.Object o)
remove in interface java.util.Listo - element to be removed from this collection, if present.
public boolean removeAll(java.util.Collection c)
removeAll in interface java.util.Listc - elements to be removed from this collection.
remove(Object),
ArrayList.contains(Object)public boolean retainAll(java.util.Collection c)
retainAll in interface java.util.Listc - elements to be retained in this collection.
remove(Object),
ArrayList.contains(Object)
public java.lang.Object set(int index,
java.lang.Object element)
set in interface java.util.Listindex - index of element to replace.element - element to be stored at the specified position.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||