public final class LayerListDialog.ShowHideLayerAction extends AbstractAction implements LayerListDialog.IEnabledStateUpdating, Layer.LayerAction, MultikeyShortcutAction
MultikeyShortcutAction.MultikeyInfo| Modifier and Type | Field and Description |
|---|---|
private WeakReference<Layer> |
lastLayer |
private Shortcut |
multikeyShortcut |
changeSupport, enabledACCELERATOR_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 |
|---|
ShowHideLayerAction()
Constructs a new
ShowHideLayerAction. |
ShowHideLayerAction(boolean init)
Creates a
LayerListDialog.ShowHideLayerAction which will toggle the visibility of
the currently selected layers |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
Component |
createMenuComponent() |
boolean |
equals(Object obj) |
void |
executeMultikeyAction(int index,
boolean repeat) |
MultikeyShortcutAction.MultikeyInfo |
getLastMultikeyAction() |
List<MultikeyShortcutAction.MultikeyInfo> |
getMultikeyCombinations() |
Shortcut |
getMultikeyShortcut() |
int |
hashCode() |
boolean |
supportLayers(List<Layer> layers) |
void |
updateEnabledState() |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledfinalize, getClass, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledprivate WeakReference<Layer> lastLayer
private Shortcut multikeyShortcut
public ShowHideLayerAction(boolean init)
LayerListDialog.ShowHideLayerAction which will toggle the visibility of
the currently selected layerspublic ShowHideLayerAction()
ShowHideLayerAction.public Shortcut getMultikeyShortcut()
getMultikeyShortcut in interface MultikeyShortcutActionpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void executeMultikeyAction(int index, boolean repeat)
executeMultikeyAction in interface MultikeyShortcutActionpublic void updateEnabledState()
updateEnabledState in interface LayerListDialog.IEnabledStateUpdatingpublic Component createMenuComponent()
createMenuComponent in interface Layer.LayerActionpublic boolean supportLayers(List<Layer> layers)
supportLayers in interface Layer.LayerActionpublic List<MultikeyShortcutAction.MultikeyInfo> getMultikeyCombinations()
getMultikeyCombinations in interface MultikeyShortcutActionpublic MultikeyShortcutAction.MultikeyInfo getLastMultikeyAction()
getLastMultikeyAction in interface MultikeyShortcutAction