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- the vertex typeE- the edge type
- 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
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface ModalGraphMouse
ModalGraphMouse.Mode -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AnnotatingGraphMousePlugin<V, E> protected MultiLayerTransformerprotected RenderContext<V, E> Fields inherited from class AbstractModalGraphMouse
animatedPickingPlugin, in, listenerList, mode, modeBox, modeKeyListener, modeListener, modeMenu, out, pickingPlugin, rotatingPlugin, scalingPlugin, shearingPlugin, translatingPlugin -
Constructor Summary
ConstructorsConstructorDescriptionAnnotatingModalGraphMouse(RenderContext<V, E> rc, AnnotatingGraphMousePlugin<V, E> annotatingPlugin) Create an instance with default values for scale in (1.1) and scale out (1/1.1).AnnotatingModalGraphMouse(RenderContext<V, E> rc, AnnotatingGraphMousePlugin<V, E> annotatingPlugin, float in, float out) Create an instance with the specified scale in and scale out values. -
Method Summary
Modifier and TypeMethodDescriptioncreate (if necessary) and return a menu that will change the modeprotected voidcreate the plugins, and load the plugins for TRANSFORMING modeprotected voidprotected voidvoidsetMode(ModalGraphMouse.Mode mode) setter for the Mode.protected voidprotected voidMethods inherited from class AbstractModalGraphMouse
addItemListener, fireItemStateChanged, getItemListeners, getModeKeyListener, getModeListener, getSelectedObjects, removeItemListener, setModeKeyListener, setZoomAtMouseMethods inherited from class PluggableGraphMouse
add, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, removeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ItemSelectable
addItemListener, getSelectedObjects, removeItemListenerMethods inherited from interface ModalGraphMouse
getModeListenerMethods inherited from interface MouseListener
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleasedMethods inherited from interface MouseMotionListener
mouseDragged, mouseMovedMethods inherited from interface MouseWheelListener
mouseWheelMoved
-
Field Details
-
annotatingPlugin
-
basicTransformer
-
rc
-
-
Constructor Details
-
AnnotatingModalGraphMouse
public AnnotatingModalGraphMouse(RenderContext<V, E> rc, AnnotatingGraphMousePlugin<V, E> annotatingPlugin) Create an instance with default values for scale in (1.1) and scale out (1/1.1).- Parameters:
rc- the RenderContext for which this class will be usedannotatingPlugin- the plugin used by this class for annotating
-
AnnotatingModalGraphMouse
public AnnotatingModalGraphMouse(RenderContext<V, E> rc, AnnotatingGraphMousePlugin<V, E> annotatingPlugin, float in, float out) Create an instance with the specified scale in and scale out values.- Parameters:
rc- the RenderContext for which this class will be usedannotatingPlugin- the plugin used by this class for annotatingin- override value for scale inout- override value for scale out
-
-
Method Details
-
loadPlugins
protected void loadPlugins()create the plugins, and load the plugins for TRANSFORMING mode- Specified by:
loadPluginsin classAbstractModalGraphMouse
-
setMode
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
- Overrides:
getModeComboBoxin classAbstractModalGraphMouse- Returns:
- Returns the modeBox.
-
getModeMenu
create (if necessary) and return a menu that will change the mode- Overrides:
getModeMenuin classAbstractModalGraphMouse- Returns:
- the menu
-