Class EditingModalGraphMouse<V,E>
java.lang.Object
edu.uci.ics.jung.visualization.control.PluggableGraphMouse
edu.uci.ics.jung.visualization.control.AbstractModalGraphMouse
edu.uci.ics.jung.visualization.control.EditingModalGraphMouse<V,E>
- All Implemented Interfaces:
ModalGraphMouse, VisualizationViewer.GraphMouse, MouseListener, MouseMotionListener, MouseWheelListener, ItemSelectable, EventListener
public class EditingModalGraphMouse<V,E>
extends AbstractModalGraphMouse
implements ModalGraphMouse, ItemSelectable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractModalGraphMouse
AbstractModalGraphMouse.ModeListenerNested classes/interfaces inherited from interface ModalGraphMouse
ModalGraphMouse.Mode -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AnnotatingGraphMousePlugin<V, E> protected MultiLayerTransformerprotected com.google.common.base.Supplier<E> protected EditingGraphMousePlugin<V, E> protected LabelEditingGraphMousePlugin<V, E> protected EditingPopupGraphMousePlugin<V, E> protected RenderContext<V, E> protected com.google.common.base.Supplier<V> Fields inherited from class AbstractModalGraphMouse
animatedPickingPlugin, in, listenerList, mode, modeBox, modeKeyListener, modeListener, modeMenu, out, pickingPlugin, rotatingPlugin, scalingPlugin, shearingPlugin, translatingPluginFields inherited from class PluggableGraphMouse
mouseListeners, mouseMotionListeners, mouseMotionPluginList, mousePluginList, mouseWheelListeners, mouseWheelPluginList -
Constructor Summary
ConstructorsConstructorDescriptionEditingModalGraphMouse(RenderContext<V, E> rc, com.google.common.base.Supplier<V> vertexFactory, com.google.common.base.Supplier<E> edgeFactory) Creates an instance with the specified rendering context and vertex/edge factories, and with default zoom in/out values of 1.1 and 1/1.1.EditingModalGraphMouse(RenderContext<V, E> rc, com.google.common.base.Supplier<V> vertexFactory, com.google.common.base.Supplier<E> edgeFactory, float in, float out) Creates an instance with the specified rendering context and vertex/edge factories, and with the specified zoom in/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
-
vertexFactory
-
edgeFactory
-
editingPlugin
-
labelEditingPlugin
-
popupEditingPlugin
-
annotatingPlugin
-
basicTransformer
-
rc
-
-
Constructor Details
-
EditingModalGraphMouse
public EditingModalGraphMouse(RenderContext<V, E> rc, com.google.common.base.Supplier<V> vertexFactory, com.google.common.base.Supplier<E> edgeFactory) Creates an instance with the specified rendering context and vertex/edge factories, and with default zoom in/out values of 1.1 and 1/1.1.- Parameters:
rc- the rendering contextvertexFactory- used to construct verticesedgeFactory- used to construct edges
-
EditingModalGraphMouse
public EditingModalGraphMouse(RenderContext<V, E> rc, com.google.common.base.Supplier<V> vertexFactory, com.google.common.base.Supplier<E> edgeFactory, float in, float out) Creates an instance with the specified rendering context and vertex/edge factories, and with the specified zoom in/out values.- Parameters:
rc- the rendering contextvertexFactory- used to construct verticesedgeFactory- used to construct edgesin- amount to zoom in by for each actionout- amount to zoom out by for each action
-
-
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:
- the modeBox.
-
getModeMenu
create (if necessary) and return a menu that will change the mode- Overrides:
getModeMenuin classAbstractModalGraphMouse- Returns:
- the menu
-
getAnnotatingPlugin
- Returns:
- the annotatingPlugin
-
getEditingPlugin
- Returns:
- the editingPlugin
-
getLabelEditingPlugin
- Returns:
- the labelEditingPlugin
-
getPopupEditingPlugin
- Returns:
- the popupEditingPlugin
-