info.aduna.linkmap.action
Class ToggleShowingNamesAction
java.lang.Object
javax.swing.AbstractAction
info.aduna.linkmap.action.LinkMapAction
info.aduna.linkmap.action.ToggleShowingNamesAction
- All Implemented Interfaces:
- ToggleAction, ActionListener, Serializable, Cloneable, EventListener, Action
public class ToggleShowingNamesAction
- extends LinkMapAction
- implements ToggleAction
ToggleShowingNamesAction toggles the visibility of the names of the
ModelObjectVertices, which is registered as a global boolean parameter inside
the LinkGraphRenderer.
- See Also:
- Serialized Form
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
|
Method Summary |
void |
actionPerformed(ActionEvent e)
Toggles the visibility of the text of the ModelObjectVertices. |
boolean |
isSelected()
Returns whether all names are currently shown. |
ToggleShowingNamesAction
public ToggleShowingNamesAction(LinkMap map,
Component parent)
isSelected
public boolean isSelected()
- Returns whether all names are currently shown. This value is dynamically
retrieved from the GraphRenderingProperties.
- Specified by:
isSelected in interface ToggleAction
actionPerformed
public void actionPerformed(ActionEvent e)
- Toggles the visibility of the text of the ModelObjectVertices. The
implementation of this method actually inverts the current value of the
corresponding boolean property inside the LinkGraphRenderer, so no state
is kept here.
- Specified by:
actionPerformed in interface ActionListener
Copyright © 1997-2008 Aduna. All Rights Reserved.