Class AbstractGraphMouse
- java.lang.Object
-
- org.jungrapht.visualization.control.PluggableGraphMouse
-
- org.jungrapht.visualization.control.AbstractGraphMouse
-
- All Implemented Interfaces:
MouseListener,MouseMotionListener,MouseWheelListener,EventListener,VisualizationViewer.GraphMouse
- Direct Known Subclasses:
AbstractModalGraphMouse,DefaultGraphMouse
public abstract class AbstractGraphMouse extends PluggableGraphMouse
AbstractGraphMouse is a PluggableGraphMouse class that manages a collection of plugins for picking and transforming the graph.Users must implement the loadPlugins() method to create and install the GraphMousePlugins. The order of the plugins is important, as they are evaluated against the mask parameters in the order that they are added.
- Author:
- Tom Nelson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractGraphMouse.Builder<T extends AbstractGraphMouse,B extends AbstractGraphMouse.Builder<T,B>>Configure an instance of an AbstractGraphMouse
-
Field Summary
Fields Modifier and Type Field Description protected floatinused by the scaling plugins for zoom inprotected floatoutused by the scaling plugins for zoom outprotected AbstractGraphMousePluginregionSelectingPluginprotected GraphMousePluginscalingPluginprotected AbstractGraphMousePluginselectingPluginprotected AbstractGraphMousePlugintranslatingPluginprotected booleanvertexSelectionOnly
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractGraphMouse(float in, float out, boolean vertexSelectionOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetZoomAtMouse(boolean zoomAtMouse)-
Methods inherited from class org.jungrapht.visualization.control.PluggableGraphMouse
add, clear, 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 org.jungrapht.visualization.VisualizationViewer.GraphMouse
isPluginsLoaded, loadPlugins, setPluginsLoaded
-
-
-
-
Field Detail
-
in
protected float in
used by the scaling plugins for zoom in
-
out
protected float out
used by the scaling plugins for zoom out
-
vertexSelectionOnly
protected boolean vertexSelectionOnly
-
scalingPlugin
protected GraphMousePlugin scalingPlugin
-
selectingPlugin
protected AbstractGraphMousePlugin selectingPlugin
-
regionSelectingPlugin
protected AbstractGraphMousePlugin regionSelectingPlugin
-
translatingPlugin
protected AbstractGraphMousePlugin translatingPlugin
-
-