Class DelegatingTool
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.cursortool.DelegatingTool
-
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener,CursorTool
- Direct Known Subclasses:
QuasimodeTool
public abstract class DelegatingTool extends Object implements CursorTool
Enables the behaviour of a CursorTool instance to be overridden.
-
-
Constructor Summary
Constructors Constructor Description DelegatingTool(CursorTool cursorTool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(LayerViewPanel layerViewPanel)voidcancelGesture()Notifies the CursorTool that a party is requesting that the gesture currently in progress be aborted.voiddeactivate()CursorgetCursor()CursorToolgetDelegate()IcongetIcon()StringgetName()Returns a very brief description of this CursorTool.booleanisGestureInProgress()booleanisRightMouseButtonUsed()voidmouseClicked(MouseEvent e)voidmouseDragged(MouseEvent e)voidmouseEntered(MouseEvent e)voidmouseExited(MouseEvent e)voidmouseMoved(MouseEvent e)voidmousePressed(MouseEvent e)voidmouseReleased(MouseEvent e)voidsetDelegate(CursorTool delegate)
-
-
-
Constructor Detail
-
DelegatingTool
public DelegatingTool(CursorTool cursorTool)
-
-
Method Detail
-
getDelegate
public CursorTool getDelegate()
-
setDelegate
public void setDelegate(CursorTool delegate)
-
getName
public String getName()
Description copied from interface:CursorToolReturns a very brief description of this CursorTool.- Specified by:
getNamein interfaceCursorTool- Returns:
- the name of this CursorTool
-
getIcon
public Icon getIcon()
- Specified by:
getIconin interfaceCursorTool- Returns:
- null to use a default icon
-
isGestureInProgress
public boolean isGestureInProgress()
- Specified by:
isGestureInProgressin interfaceCursorTool
-
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
-
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressedin interfaceMouseListener
-
mouseClicked
public void mouseClicked(MouseEvent e)
- Specified by:
mouseClickedin interfaceMouseListener
-
activate
public void activate(LayerViewPanel layerViewPanel)
- Specified by:
activatein interfaceCursorTool
-
getCursor
public Cursor getCursor()
- Specified by:
getCursorin interfaceCursorTool
-
deactivate
public void deactivate()
- Specified by:
deactivatein interfaceCursorTool
-
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleasedin interfaceMouseListener
-
mouseEntered
public void mouseEntered(MouseEvent e)
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
public void mouseExited(MouseEvent e)
- Specified by:
mouseExitedin interfaceMouseListener
-
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseMoved
public void mouseMoved(MouseEvent e)
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
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
-
-