info.aduna.linkmap.action
Class ToggleShowingObjectWeightsAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by info.aduna.linkmap.action.LinkMapAction
          extended by info.aduna.linkmap.action.ToggleShowingObjectWeightsAction
All Implemented Interfaces:
ToggleAction, ActionListener, Serializable, Cloneable, EventListener, Action

public class ToggleShowingObjectWeightsAction
extends LinkMapAction
implements ToggleAction

ToggleShowingObjectWeightAction toggles whether the icons of the ModelObjectVertices should be scaled according to weight or not, which is registered as a parameter inside the LinkGraphRenderer.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
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
 
Constructor Summary
ToggleShowingObjectWeightsAction(LinkMap map, Component parent)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          Toggles the scaling of the ModelObjectVertices.
 boolean isSelected()
          Returns whether all names are currently shown.
 
Methods inherited from class info.aduna.linkmap.action.LinkMapAction
getMap, getParent
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 

Constructor Detail

ToggleShowingObjectWeightsAction

public ToggleShowingObjectWeightsAction(LinkMap map,
                                        Component parent)
Method Detail

isSelected

public boolean isSelected()
Returns whether all names are currently shown. This value is dynamically retrieved from the LinkGraphRenderer.

Specified by:
isSelected in interface ToggleAction

actionPerformed

public void actionPerformed(ActionEvent e)
Toggles the scaling 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.