info.aduna.linkmap.action
Class ZoomToFitAction

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

public class ZoomToFitAction
extends LinkMapAction

A ZoomToFitAction sets the scale of a LinkGraphRenderer so that it precisely fits in the current size of a given JScrollPane.

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
ZoomToFitAction(LinkMap map, Component parent, JScrollPane scrollPane)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          Adjusts the scale of the LinkGraphRenderer of the LinkMap so that the rendering fits precisely in the current size of the JScrollPane.
 
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
 

Constructor Detail

ZoomToFitAction

public ZoomToFitAction(LinkMap map,
                       Component parent,
                       JScrollPane scrollPane)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Adjusts the scale of the LinkGraphRenderer of the LinkMap so that the rendering fits precisely in the current size of the JScrollPane.



Copyright © 1997-2008 Aduna. All Rights Reserved.