Class CompositeTool
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.cursortool.CompositeTool
-
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener,CursorTool
- Direct Known Subclasses:
AndCompositeTool,OrCompositeTool
public abstract class CompositeTool extends Object implements CursorTool
-
-
Field Summary
Fields Modifier and Type Field Description protected ArrayListcursorTools
-
Constructor Summary
Constructors Constructor Description CompositeTool(CursorTool[] cursorTools)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(LayerViewPanel layerViewPanel)CompositeTooladd(CursorTool tool)voidcancelGesture()Notifies the CursorTool that a party is requesting that the gesture currently in progress be aborted.voiddeactivate()protected CursorToolfirstCursorTool()CursorgetCursor()IcongetIcon()protected StringgetName(String delimiter)LayerViewPanelgetPanel()booleanisGestureInProgress()booleanisRightMouseButtonUsed()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.locationtech.jts.jump.workbench.ui.cursortool.CursorTool
getName
-
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
-
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
-
-
-
-
Field Detail
-
cursorTools
protected ArrayList cursorTools
-
-
Constructor Detail
-
CompositeTool
public CompositeTool(CursorTool[] cursorTools)
-
-
Method Detail
-
deactivate
public void deactivate()
- Specified by:
deactivatein interfaceCursorTool
-
getCursor
public Cursor getCursor()
- Specified by:
getCursorin interfaceCursorTool
-
isRightMouseButtonUsed
public boolean isRightMouseButtonUsed()
- Specified by:
isRightMouseButtonUsedin interfaceCursorTool- Returns:
- true if this CursorTool uses the right mouse button; false to allow the panel to show a popup-menu on right-clicks
-
firstCursorTool
protected CursorTool firstCursorTool()
-
activate
public void activate(LayerViewPanel layerViewPanel)
- Specified by:
activatein interfaceCursorTool
-
add
public CompositeTool add(CursorTool tool)
-
cancelGesture
public void cancelGesture()
Description copied from interface:CursorToolNotifies the CursorTool that a party is requesting that the gesture currently in progress be aborted.- Specified by:
cancelGesturein interfaceCursorTool
-
getIcon
public Icon getIcon()
- Specified by:
getIconin interfaceCursorTool- Returns:
- null to use a default icon
-
isGestureInProgress
public boolean isGestureInProgress()
- Specified by:
isGestureInProgressin interfaceCursorTool
-
getPanel
public LayerViewPanel getPanel()
-
-