public class QuasimodeTool extends DelegatingTool
Modifier and Type | Class and Description |
---|---|
static class |
QuasimodeTool.ModifierKeySet |
static class |
QuasimodeTool.ModifierKeySpec |
Constructor and Description |
---|
QuasimodeTool(CursorTool defaultTool) |
Modifier and Type | Method and Description |
---|---|
void |
activate(LayerViewPanel panel) |
QuasimodeTool |
add(QuasimodeTool.ModifierKeySpec keySpec,
CursorTool tool) |
void |
cancelGesture()
Notifies the CursorTool that a party is requesting that the gesture
currently in progress be aborted.
|
QuasimodeTool |
cloneAndSetDefaultTool(CursorTool defaultTool) |
static QuasimodeTool |
createWithDefaults(CursorTool tool) |
void |
deactivate() |
static java.util.Set<QuasimodeTool.ModifierKeySpec> |
getDefaultKeyboardShortcuts() |
static CursorTool |
getDefaultKeyboardShortcutTool(QuasimodeTool.ModifierKeySpec key) |
CursorTool |
getDefaultTool() |
java.awt.event.KeyListener |
getKeyListener() |
QuasimodeTool |
remove(QuasimodeTool.ModifierKeySpec keySpec) |
java.lang.String |
toString() |
void |
useDefaults(boolean onoff) |
getCursor, getDelegate, getIcon, getName, isGestureInProgress, isRightMouseButtonUsed, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setDelegate
public QuasimodeTool(CursorTool defaultTool)
public CursorTool getDefaultTool()
public QuasimodeTool add(QuasimodeTool.ModifierKeySpec keySpec, CursorTool tool)
public QuasimodeTool remove(QuasimodeTool.ModifierKeySpec keySpec)
public QuasimodeTool cloneAndSetDefaultTool(CursorTool defaultTool)
public java.lang.String toString()
toString
in class java.lang.Object
public void cancelGesture()
CursorTool
cancelGesture
in interface CursorTool
cancelGesture
in class DelegatingTool
public java.awt.event.KeyListener getKeyListener()
public void activate(LayerViewPanel panel)
activate
in interface CursorTool
activate
in class DelegatingTool
public void deactivate()
deactivate
in interface CursorTool
deactivate
in class DelegatingTool
public static QuasimodeTool createWithDefaults(CursorTool tool)
public void useDefaults(boolean onoff)
public static CursorTool getDefaultKeyboardShortcutTool(QuasimodeTool.ModifierKeySpec key)
public static java.util.Set<QuasimodeTool.ModifierKeySpec> getDefaultKeyboardShortcuts()