Package ghidra.graph.viewer.event.mouse
Class VisualGraphPluggableGraphMouse<V extends VisualVertex,E extends VisualEdge<V>>
java.lang.Object
ghidra.graph.viewer.event.mouse.VisualGraphPluggableGraphMouse<V,E>
- Type Parameters:
V
- the vertex typeE
- the edge type
- All Implemented Interfaces:
edu.uci.ics.jung.visualization.VisualizationViewer.GraphMouse
,MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
- Direct Known Subclasses:
VisualGraphSatelliteGraphMouse
public class VisualGraphPluggableGraphMouse<V extends VisualVertex,E extends VisualEdge<V>>
extends Object
implements edu.uci.ics.jung.visualization.VisualizationViewer.GraphMouse
This is the class that controls which mouse plugins get installed into the graph.
-
Field Summary
Modifier and TypeFieldDescriptionprotected CopyOnWriteArrayList
<edu.uci.ics.jung.visualization.control.GraphMousePlugin> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(edu.uci.ics.jung.visualization.control.GraphMousePlugin p) protected void
void
dispose()
void
void
void
void
void
void
void
void
void
prepend
(edu.uci.ics.jung.visualization.control.GraphMousePlugin p) Places the given plugin at the front of the listvoid
remove
(edu.uci.ics.jung.visualization.control.GraphMousePlugin p)
-
Field Details
-
mousePlugins
protected CopyOnWriteArrayList<edu.uci.ics.jung.visualization.control.GraphMousePlugin> mousePlugins
-
-
Constructor Details
-
VisualGraphPluggableGraphMouse
public VisualGraphPluggableGraphMouse()
-
-
Method Details
-
addPlugins
protected void addPlugins() -
prepend
public void prepend(edu.uci.ics.jung.visualization.control.GraphMousePlugin p) Places the given plugin at the front of the list- Parameters:
p
- the mouse plugin to prepend
-
add
public void add(edu.uci.ics.jung.visualization.control.GraphMousePlugin p) -
remove
public void remove(edu.uci.ics.jung.visualization.control.GraphMousePlugin p) -
dispose
public void dispose() -
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
mouseWheelMoved
- Specified by:
mouseWheelMoved
in interfaceMouseWheelListener
-