com.vividsolutions.jump.workbench.ui.cursortool
Class CompositeTool
java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.CompositeTool
- All Implemented Interfaces:
- CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
- Direct Known Subclasses:
- AndCompositeTool, OrCompositeTool
public abstract class CompositeTool
- extends java.lang.Object
- implements CursorTool
|
Field Summary |
protected java.util.ArrayList |
cursorTools
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.vividsolutions.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 |
cursorTools
protected java.util.ArrayList cursorTools
CompositeTool
public CompositeTool(CursorTool[] cursorTools)
deactivate
public void deactivate()
- Specified by:
deactivate in interface CursorTool
getCursor
public java.awt.Cursor getCursor()
- Specified by:
getCursor in interface CursorTool
isRightMouseButtonUsed
public boolean isRightMouseButtonUsed()
- Specified by:
isRightMouseButtonUsed in interface CursorTool
- 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:
activate in interface CursorTool
add
public CompositeTool add(CursorTool tool)
cancelGesture
public void cancelGesture()
- Description copied from interface:
CursorTool
- Notifies the CursorTool that a party is requesting that the gesture
currently in progress be aborted.
- Specified by:
cancelGesture in interface CursorTool
getIcon
public javax.swing.Icon getIcon()
- Specified by:
getIcon in interface CursorTool
- Returns:
- null to use a default icon
getName
protected java.lang.String getName(java.lang.String delimiter)
isGestureInProgress
public boolean isGestureInProgress()
- Specified by:
isGestureInProgress in interface CursorTool
getPanel
public LayerViewPanel getPanel()