edu.uci.ics.jung.visualization.annotations
Class AnnotatingModalGraphMouse<V,E>
java.lang.Object
edu.uci.ics.jung.visualization.control.PluggableGraphMouse
edu.uci.ics.jung.visualization.control.AbstractModalGraphMouse
edu.uci.ics.jung.visualization.annotations.AnnotatingModalGraphMouse<V,E>
- Type Parameters:
V
- E
-
- All Implemented Interfaces:
- ModalGraphMouse, VisualizationViewer.GraphMouse, MouseListener, MouseMotionListener, MouseWheelListener, ItemSelectable, EventListener
public class AnnotatingModalGraphMouse<V,E>
- extends AbstractModalGraphMouse
- implements ModalGraphMouse, ItemSelectable
a graph mouse that supplies an annotations mode
- Author:
- Tom Nelson - tomnelson@dev.java.net
Fields inherited from class edu.uci.ics.jung.visualization.control.AbstractModalGraphMouse |
animatedPickingPlugin, in, listenerList, mode, modeBox, modeKeyListener, modeListener, modeMenu, out, pickingPlugin, rotatingPlugin, scalingPlugin, shearingPlugin, translatingPlugin |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
annotatingPlugin
protected AnnotatingGraphMousePlugin<V,E> annotatingPlugin
basicTransformer
protected MultiLayerTransformer basicTransformer
rc
protected RenderContext<V,E> rc
AnnotatingModalGraphMouse
public AnnotatingModalGraphMouse(RenderContext<V,E> rc,
AnnotatingGraphMousePlugin<V,E> annotatingPlugin)
- create an instance with default values
AnnotatingModalGraphMouse
public AnnotatingModalGraphMouse(RenderContext<V,E> rc,
AnnotatingGraphMousePlugin<V,E> annotatingPlugin,
float in,
float out)
- create an instance with passed values
- Parameters:
in
- override value for scale inout
- override value for scale out
loadPlugins
protected void loadPlugins()
- create the plugins, and load the plugins for TRANSFORMING mode
- Specified by:
loadPlugins
in class AbstractModalGraphMouse
setMode
public void setMode(ModalGraphMouse.Mode mode)
- setter for the Mode.
- Specified by:
setMode
in interface ModalGraphMouse
- Overrides:
setMode
in class AbstractModalGraphMouse
setPickingMode
protected void setPickingMode()
- Overrides:
setPickingMode
in class AbstractModalGraphMouse
setTransformingMode
protected void setTransformingMode()
- Overrides:
setTransformingMode
in class AbstractModalGraphMouse
setEditingMode
protected void setEditingMode()
setAnnotatingMode
protected void setAnnotatingMode()
getModeComboBox
public JComboBox getModeComboBox()
- Overrides:
getModeComboBox
in class AbstractModalGraphMouse
- Returns:
- Returns the modeBox.
getModeMenu
public JMenu getModeMenu()
- create (if necessary) and return a menu that will change
the mode
- Overrides:
getModeMenu
in class AbstractModalGraphMouse
- Returns:
- the menu
Copyright © 2009. All Rights Reserved.