info.aduna.linkmap.action
Class ZoomOutAction
java.lang.Object
javax.swing.AbstractAction
info.aduna.linkmap.action.LinkMapAction
info.aduna.linkmap.action.ZoomOutAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public class ZoomOutAction
- extends LinkMapAction
A ZoomOutAction decreases, when invoked, the scale of the LinkGraphRenderer
with a constant factor.
- See Also:
- Serialized Form
|
Field Summary |
static double |
FACTOR
The factor with which the scale of the LinkGraphRenderer is multiplied
when this Action is invoked. |
| 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 |
FACTOR
public static final double FACTOR
- The factor with which the scale of the LinkGraphRenderer is multiplied
when this Action is invoked.
- See Also:
- Constant Field Values
ZoomOutAction
public ZoomOutAction(LinkMap map,
Component parent)
actionPerformed
public void actionPerformed(ActionEvent e)
- Multiplies the scale of the LinkGraphRenderer with FACTOR. This class
recalibrates the scale to 1.0 when the difference becomes less than 0.01,
thereby preventing the typical rounding problems than often happen with
floating point calculations.
Copyright © 1997-2008 Aduna. All Rights Reserved.