cytoscape.dialogs
Class ShrinkExpandGraph
java.lang.Object
javax.swing.AbstractAction
cytoscape.util.CytoscapeAction
cytoscape.dialogs.ShrinkExpandGraph
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action, MenuListener
public class ShrinkExpandGraph
- extends CytoscapeAction
This class shifts the nodes to shrink or expand the graph:
it averages the coordinates of all the nodes to find the center
it translates the graph to a center at (0,0)
it multiplies each node coordinate by a factor m
it translates the graph back to the original center
- See Also:
- Serialized Form
Field Summary |
protected double |
m
|
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 |
Methods inherited from class cytoscape.util.CytoscapeAction |
actionHelp, clone, completions, enableForNetwork, enableForNetworkAndView, getActionList, getKeyCode, getKeyModifiers, getName, getPreferredButtonGroup, getPreferredMenu, getPrefferedIndex, initialize, isAccelerated, isInMenuBar, isInToolBar, menuCanceled, menuDeselected, menuSelected, setAcceleratorCombo, setName, setPreferredButtonGroup, setPreferredIndex, setPreferredMenu, takeArgs |
m
protected double m
actionPerformed
public void actionPerformed(ActionEvent e)
- DOCUMENT ME!
- Specified by:
actionPerformed
in interface ActionListener
- Specified by:
actionPerformed
in class CytoscapeAction
- Parameters:
e
- DOCUMENT ME!
Copyright 2010 Cytoscape Consortium. All rights reserved.