info.aduna.clustermap.action
Class UpdateLayoutAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by info.aduna.clustermap.action.UpdateLayoutAction
All Implemented Interfaces:
ClusterMapListener, ActionListener, Serializable, Cloneable, EventListener, Action

public class UpdateLayoutAction
extends AbstractAction
implements ClusterMapListener

An UpdateLayoutAction updates the layout (and rendering) of the graph, so that it again meets the aesthetic criteria of the layout algorithm. This is useful to "renice" the graph after editing, or when certain visual cluster sizes have changed.

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
UpdateLayoutAction(ClusterMap map)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void clusterModelChanged(ClusterMap map)
          Event that signals that the ClusterMap has gotten a different ClusterModel instance.
 void graphChanged(ClusterMap map)
          Event that signals that the ClusterMap's updateGraph method has finished and the visualisation has structurally changed, i.e.
 void propertyChanged(String property, Object subject, ClusterMap map)
          Event that signals that the specified property has changed.
 void renderingChanged(ClusterMap map)
          Event that signals that the rendering has changed, other than through selection or structural graph changes.
 void selectionChanged(ClusterMap map)
          Event that signals that the current set of selected objects has changed, triggered by user interaction in the ClusterMap or by request from other components.
 
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
 

Constructor Detail

UpdateLayoutAction

public UpdateLayoutAction(ClusterMap map)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

clusterModelChanged

public void clusterModelChanged(ClusterMap map)
Description copied from interface: ClusterMapListener
Event that signals that the ClusterMap has gotten a different ClusterModel instance. The graph display of the ClusterMap may not yet have been changed though.

Specified by:
clusterModelChanged in interface ClusterMapListener

graphChanged

public void graphChanged(ClusterMap map)
Description copied from interface: ClusterMapListener
Event that signals that the ClusterMap's updateGraph method has finished and the visualisation has structurally changed, i.e. Classifications have appeared in or disappeared from the map.

Specified by:
graphChanged in interface ClusterMapListener

propertyChanged

public void propertyChanged(String property,
                            Object subject,
                            ClusterMap map)
Description copied from interface: ClusterMapListener
Event that signals that the specified property has changed. Optionally, an involved subject can be specified, indicating that it is a local property bound to that subject.

Specified by:
propertyChanged in interface ClusterMapListener

renderingChanged

public void renderingChanged(ClusterMap map)
Description copied from interface: ClusterMapListener
Event that signals that the rendering has changed, other than through selection or structural graph changes.

Specified by:
renderingChanged in interface ClusterMapListener

selectionChanged

public void selectionChanged(ClusterMap map)
Description copied from interface: ClusterMapListener
Event that signals that the current set of selected objects has changed, triggered by user interaction in the ClusterMap or by request from other components.

Specified by:
selectionChanged in interface ClusterMapListener


Copyright © 1997-2008 Aduna. All Rights Reserved.