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,java.awt.event.MouseListener,java.awt.event.MouseMotionListener,java.awt.event.MouseWheelListener,java.awt.ItemSelectable,java.util.EventListener
public class AnnotatingModalGraphMouse<V,E> extends AbstractModalGraphMouse implements ModalGraphMouse, java.awt.ItemSelectable
a graph mouse that supplies an annotations mode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotatingModalGraphMouse.ModeKeyAdapter-
Nested classes/interfaces inherited from interface edu.uci.ics.jung.visualization.control.ModalGraphMouse
ModalGraphMouse.Mode
-
-
Field Summary
Fields Modifier and Type Field Description protected AnnotatingGraphMousePlugin<V,E>annotatingPluginprotected MultiLayerTransformerbasicTransformerprotected RenderContext<V,E>rc-
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
-
-
Constructor Summary
Constructors Constructor Description AnnotatingModalGraphMouse(RenderContext<V,E> rc, AnnotatingGraphMousePlugin<V,E> annotatingPlugin)create an instance with default valuesAnnotatingModalGraphMouse(RenderContext<V,E> rc, AnnotatingGraphMousePlugin<V,E> annotatingPlugin, float in, float out)create an instance with passed values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JComboBoxgetModeComboBox()javax.swing.JMenugetModeMenu()create (if necessary) and return a menu that will change the modeprotected voidloadPlugins()create the plugins, and load the plugins for TRANSFORMING modeprotected voidsetAnnotatingMode()protected voidsetEditingMode()voidsetMode(ModalGraphMouse.Mode mode)setter for the Mode.protected voidsetPickingMode()protected voidsetTransformingMode()-
Methods inherited from class edu.uci.ics.jung.visualization.control.AbstractModalGraphMouse
addItemListener, fireItemStateChanged, getItemListeners, getModeKeyListener, getModeListener, getSelectedObjects, removeItemListener, setModeKeyListener, setZoomAtMouse
-
Methods inherited from class edu.uci.ics.jung.visualization.control.PluggableGraphMouse
add, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, remove
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.awt.ItemSelectable
addItemListener, getSelectedObjects, removeItemListener
-
Methods inherited from interface edu.uci.ics.jung.visualization.control.ModalGraphMouse
getModeListener
-
-
-
-
Field Detail
-
annotatingPlugin
protected AnnotatingGraphMousePlugin<V,E> annotatingPlugin
-
basicTransformer
protected MultiLayerTransformer basicTransformer
-
rc
protected RenderContext<V,E> rc
-
-
Constructor Detail
-
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
-
-
Method Detail
-
loadPlugins
protected void loadPlugins()
create the plugins, and load the plugins for TRANSFORMING mode- Specified by:
loadPluginsin classAbstractModalGraphMouse
-
setMode
public void setMode(ModalGraphMouse.Mode mode)
setter for the Mode.- Specified by:
setModein interfaceModalGraphMouse- Overrides:
setModein classAbstractModalGraphMouse
-
setPickingMode
protected void setPickingMode()
- Overrides:
setPickingModein classAbstractModalGraphMouse
-
setTransformingMode
protected void setTransformingMode()
- Overrides:
setTransformingModein classAbstractModalGraphMouse
-
setEditingMode
protected void setEditingMode()
-
setAnnotatingMode
protected void setAnnotatingMode()
-
getModeComboBox
public javax.swing.JComboBox getModeComboBox()
- Overrides:
getModeComboBoxin classAbstractModalGraphMouse- Returns:
- Returns the modeBox.
-
getModeMenu
public javax.swing.JMenu getModeMenu()
create (if necessary) and return a menu that will change the mode- Overrides:
getModeMenuin classAbstractModalGraphMouse- Returns:
- the menu
-
-