public static class CanvasActions.ToggleLayersAction extends IcyAbstractAction implements ActiveViewerListener
ENABLED_KEY
Constructor and Description |
---|
CanvasActions.ToggleLayersAction() |
CanvasActions.ToggleLayersAction(boolean selected) |
Modifier and Type | Method and Description |
---|---|
void |
activeViewerChanged(ViewerEvent event)
A property change of current active viewer has changed.
|
boolean |
doAction(java.awt.event.ActionEvent e)
Action implementation
|
boolean |
isEnabled() |
void |
viewerActivated(Viewer viewer)
Viewer just get the active state.
|
void |
viewerDeactivated(Viewer viewer)
Viewer just lost the active state.
|
actionPerformed, doAction, enabledChanged, execute, executeNow, getDescription, getIcon, getKeyStroke, getLabelComponent, getLabelComponent, getLongDescription, getName, getProcessMessage, getRichToolTip, isBgProcess, isProcessing, isSelected, setAccelerator, setAccelerator, setBgProcess, setDescription, setEnabled, setIcon, setLongDescription, setName, setProcessMessage, setSelected, setToolTipTextFromAction
public CanvasActions.ToggleLayersAction(boolean selected)
public CanvasActions.ToggleLayersAction()
public boolean doAction(java.awt.event.ActionEvent e)
IcyAbstractAction
public boolean isEnabled()
isEnabled
in interface javax.swing.Action
isEnabled
in class IcyAbstractAction
public void viewerActivated(Viewer viewer)
ActiveViewerListener
ActiveViewerListener.viewerDeactivated(Viewer)
event describing
the viewer which actually lose activation.viewerActivated
in interface ActiveViewerListener
public void viewerDeactivated(Viewer viewer)
ActiveViewerListener
ActiveViewerListener.viewerActivated(Viewer)
event describing the
new activated viewer.viewerDeactivated
in interface ActiveViewerListener
public void activeViewerChanged(ViewerEvent event)
ActiveViewerListener
activeViewerChanged
in interface ActiveViewerListener