|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
void |
addSelectedToolListener(SelectedToolListener listener)
Register interest in being called when Tool changes. |
Tool |
getSelectedTool()
Get the SelectedTool. |
void |
removeSelectedToolListener(SelectedToolListener listener)
Remove interest in bening notified when Tool changes. |
void |
setSelectedTool(int i)
Set the tool. |
void |
setSelectedTool(Tool tool)
Set the SelectedTool. |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Method Detail |
public void addSelectedToolListener(SelectedToolListener listener)
listener
- The object to notify when tool changes.public void removeSelectedToolListener(SelectedToolListener listener)
listener
- The listener.public Tool getSelectedTool()
public void setSelectedTool(Tool tool)
tool
- The new SelectedTtool.public void setSelectedTool(int i)
i
- The index of the selected tool.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |