Class QuasimodeTool
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.cursortool.DelegatingTool
-
- org.locationtech.jts.jump.workbench.ui.cursortool.QuasimodeTool
-
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener,CursorTool
- Direct Known Subclasses:
SnapVerticesToSelectedVertexTool
public class QuasimodeTool extends DelegatingTool
Delegates to different CursorTools depending on whether various modifier keys are pressed (Ctrl, Shift, Alt). The term "quasimode" refers to a mode that is only in existence as long as a key is held down -- the mode vanishes as soon as the key is released. For more information, see the book "Humane Interfaces" by Jef Raskin.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuasimodeTool.ModifierKeySpec
-
Constructor Summary
Constructors Constructor Description QuasimodeTool(CursorTool defaultTool)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(LayerViewPanel panel)QuasimodeTooladd(QuasimodeTool.ModifierKeySpec keySpec, CursorTool tool)static QuasimodeTooladdStandardQuasimodes(CursorTool tool)voiddeactivate()CursorgetCursor()voidmousePressed(MouseEvent e)-
Methods inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.DelegatingTool
cancelGesture, getDelegate, getIcon, getName, isGestureInProgress, isRightMouseButtonUsed, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, setDelegate
-
-
-
-
Constructor Detail
-
QuasimodeTool
public QuasimodeTool(CursorTool defaultTool)
-
-
Method Detail
-
getCursor
public Cursor getCursor()
- Specified by:
getCursorin interfaceCursorTool- Overrides:
getCursorin classDelegatingTool
-
activate
public void activate(LayerViewPanel panel)
- Specified by:
activatein interfaceCursorTool- Overrides:
activatein classDelegatingTool
-
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classDelegatingTool
-
deactivate
public void deactivate()
- Specified by:
deactivatein interfaceCursorTool- Overrides:
deactivatein classDelegatingTool
-
add
public QuasimodeTool add(QuasimodeTool.ModifierKeySpec keySpec, CursorTool tool)
-
addStandardQuasimodes
public static QuasimodeTool addStandardQuasimodes(CursorTool tool)
-
-