public final class LayerListDialog.ShowHideLayerAction extends javax.swing.AbstractAction implements LayerListDialog.IEnabledStateUpdating, Layer.LayerAction, MultikeyShortcutAction
MultikeyShortcutAction.MultikeyInfo| Modifier and Type | Field and Description |
|---|---|
private java.lang.ref.WeakReference<Layer> |
lastLayer |
private Shortcut |
multikeyShortcut |
| Constructor and Description |
|---|
ShowHideLayerAction()
Creates a
LayerListDialog.ShowHideLayerAction which will toggle the visibility of
the currently selected layers |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
java.awt.Component |
createMenuComponent() |
boolean |
equals(java.lang.Object obj) |
void |
executeMultikeyAction(int index,
boolean repeat) |
MultikeyShortcutAction.MultikeyInfo |
getLastMultikeyAction() |
java.util.List<MultikeyShortcutAction.MultikeyInfo> |
getMultikeyCombinations() |
Shortcut |
getMultikeyShortcut() |
int |
hashCode() |
boolean |
supportLayers(java.util.List<Layer> layers) |
void |
updateEnabledState() |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledprivate Shortcut multikeyShortcut
public ShowHideLayerAction()
LayerListDialog.ShowHideLayerAction which will toggle the visibility of
the currently selected layerspublic Shortcut getMultikeyShortcut()
getMultikeyShortcut in interface MultikeyShortcutActionpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void executeMultikeyAction(int index, boolean repeat)
executeMultikeyAction in interface MultikeyShortcutActionpublic void updateEnabledState()
updateEnabledState in interface LayerListDialog.IEnabledStateUpdatingpublic java.awt.Component createMenuComponent()
createMenuComponent in interface Layer.LayerActionpublic boolean supportLayers(java.util.List<Layer> layers)
supportLayers in interface Layer.LayerActionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.util.List<MultikeyShortcutAction.MultikeyInfo> getMultikeyCombinations()
getMultikeyCombinations in interface MultikeyShortcutActionpublic MultikeyShortcutAction.MultikeyInfo getLastMultikeyAction()
getLastMultikeyAction in interface MultikeyShortcutAction