Class QuasimodeTool
java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.DelegatingTool
com.vividsolutions.jump.workbench.ui.cursortool.QuasimodeTool
- All Implemented Interfaces:
CursorTool, MouseListener, MouseMotionListener, EventListener
- Direct Known Subclasses:
SnapVerticesToSelectedVertexTool
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 ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(LayerViewPanel panel) add(QuasimodeTool.ModifierKeySpec keySpec, CursorTool tool) voidNotifies the CursorTool that a party is requesting that the gesture currently in progress be aborted.cloneAndSetDefaultTool(CursorTool defaultTool) static QuasimodeToolcreateWithDefaults(CursorTool tool) voidstatic Set<QuasimodeTool.ModifierKeySpec> static CursorToolremove(QuasimodeTool.ModifierKeySpec keySpec) toString()voiduseDefaults(boolean onoff) Methods inherited from class DelegatingTool
getCursor, getDelegate, getIcon, getName, isGestureInProgress, isRightMouseButtonUsed, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setDelegate
-
Constructor Details
-
QuasimodeTool
-
-
Method Details
-
getDefaultTool
-
add
-
remove
-
cloneAndSetDefaultTool
-
toString
-
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- Overrides:
cancelGesturein classDelegatingTool
-
getKeyListener
-
activate
- Specified by:
activatein interfaceCursorTool- Overrides:
activatein classDelegatingTool
-
deactivate
public void deactivate()- Specified by:
deactivatein interfaceCursorTool- Overrides:
deactivatein classDelegatingTool
-
createWithDefaults
-
useDefaults
public void useDefaults(boolean onoff) -
getDefaultKeyboardShortcutTool
-
getDefaultKeyboardShortcuts
-