public class AbstractEditorTool extends StandardMapMouseInterpreter implements EditorTool
StandardMapMouseInterpreter.GeometryOfInterest, StandardMapMouseInterpreter.MouseTimerListener
Modifier and Type | Field and Description |
---|---|
protected java.awt.Container |
face |
protected boolean |
visible
Used as a placeholder if face is null.
|
protected boolean |
wantsEvents
Flag to let it's layer know when it wants control over mouse events.
|
active, clickInterest, consumeEvents, currentMouseEvent, DEBUG, grp, lastToolTip, layer, mouseModeServiceList, mouseTimer, mouseTimerInterval, mouseTimerListener, movementInterest, noTimerOverOMGraphic
Modifier | Constructor and Description |
---|---|
protected |
AbstractEditorTool()
Make sure you set the EditorLayer at some point.
|
|
AbstractEditorTool(EditorLayer eLayer)
The preferred constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Called when the parent layer detects that it has been removed from the
application.
|
void |
drawingComplete(OMGraphic omg,
OMAction action)
Method where the EditorLayer lets the tool know that the editing function
has come full circle, so the user interface can be adjusted.
|
void |
findAndInit(java.lang.Object obj)
Part of the interface where the EditorLayer can provide components that
are available via the MapHandler/BeanContext.
|
void |
findAndUndo(java.lang.Object obj)
Part of the interface where the EditorLayer can provide components that
are available via the MapHandler/BeanContext.
|
java.awt.Container |
getFace()
The tool's interface.
|
boolean |
isVisible()
A method that lets the EditorTool respond to queries wondering whether
its interface is visible.
|
void |
setLayer(OMGraphicHandlerLayer eLayer) |
void |
setVisible(boolean value)
A method that lets the EditorTool know whether its interface should be
visible.
|
void |
setWantsEvents(boolean value)
Set whether the tool should want MouseEvents.
|
boolean |
wantsEvents()
Whether the Tool is expecting to be fed MouseEvents.
|
deselect, displayPopup, getClickInterest, getConsumeEvents, getCurrentMouseEvent, getGeometryUnder, getGRP, getLayer, getMouseModeServiceList, getMouseTimerInterval, getMovementInterest, getNoTimerOverOMGraphic, handleInfoLine, handleToolTip, isActive, isLeftMouseButton, leftClick, leftClick, leftClickOff, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseMoved, mouseNotOver, mouseOver, mouseOver, mousePressed, mouseReleased, rightClick, rightClick, rightClickOff, select, setActive, setClickInterest, setClickInterestFromMouseEvent, setConsumeEvents, setCurrentMouseEvent, setGRP, setMouseModeServiceList, setMouseTimerInterval, setMovementInterest, setNoTimerOverOMGraphic, testForAndHandlePopupTrigger, updateMouseMoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentMouseEvent, getGRP, isActive, leftClick, leftClick, leftClickOff, mouseNotOver, mouseOver, mouseOver, rightClick, rightClick, rightClickOff, setActive, setGRP
getMouseModeServiceList, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseMoved, mousePressed, mouseReleased
protected boolean wantsEvents
protected boolean visible
protected java.awt.Container face
protected AbstractEditorTool()
public AbstractEditorTool(EditorLayer eLayer)
public void setLayer(OMGraphicHandlerLayer eLayer)
setLayer
in class StandardMapMouseInterpreter
public void setWantsEvents(boolean value)
public boolean wantsEvents()
wantsEvents
in interface EditorTool
public void findAndInit(java.lang.Object obj)
findAndInit
in interface LightMapHandlerChild
public void findAndUndo(java.lang.Object obj)
findAndUndo
in interface LightMapHandlerChild
public void drawingComplete(OMGraphic omg, OMAction action)
drawingComplete
in interface EditorTool
public void setVisible(boolean value)
setVisible
in interface EditorTool
public boolean isVisible()
isVisible
in interface EditorTool
public java.awt.Container getFace()
getFace
in interface EditorTool
public void dispose()
dispose
in interface EditorTool
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details