private abstract static class JumpToMarkerActions.JumpToMarker extends AbstractAction implements MultikeyShortcutAction
MultikeyShortcutAction.MultikeyInfo
Modifier and Type | Field and Description |
---|---|
private WeakReference<Layer> |
lastLayer |
private Layer |
layer |
private Shortcut |
multikeyShortcut |
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
JumpToMarker(JumpToMarkerActions.JumpToMarkerLayer layer,
Shortcut shortcut) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
protected abstract void |
execute(Layer l) |
void |
executeMultikeyAction(int index,
boolean repeat) |
MultikeyShortcutAction.MultikeyInfo |
getLastMultikeyAction() |
List<MultikeyShortcutAction.MultikeyInfo> |
getMultikeyCombinations() |
Shortcut |
getMultikeyShortcut() |
protected void |
setLastLayer(Layer l) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
private final transient Shortcut multikeyShortcut
private transient WeakReference<Layer> lastLayer
JumpToMarker(JumpToMarkerActions.JumpToMarkerLayer layer, Shortcut shortcut)
protected final void setLastLayer(Layer l)
public Shortcut getMultikeyShortcut()
getMultikeyShortcut
in interface MultikeyShortcutAction
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void executeMultikeyAction(int index, boolean repeat)
executeMultikeyAction
in interface MultikeyShortcutAction
public List<MultikeyShortcutAction.MultikeyInfo> getMultikeyCombinations()
getMultikeyCombinations
in interface MultikeyShortcutAction
public MultikeyShortcutAction.MultikeyInfo getLastMultikeyAction()
getLastMultikeyAction
in interface MultikeyShortcutAction