Package ghidra.graph.viewer.event.mouse
Class VisualGraphAbstractGraphMousePlugin<V extends VisualVertex,E extends VisualEdge<V>>
java.lang.Object
edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
ghidra.graph.viewer.event.mouse.VisualGraphAbstractGraphMousePlugin<V,E>
- Type Parameters:
V
- the vertex typeE
- the edge type
- All Implemented Interfaces:
edu.uci.ics.jung.visualization.control.GraphMousePlugin
,VisualGraphMousePlugin<V,
,E> MouseListener
,MouseMotionListener
,EventListener
- Direct Known Subclasses:
VisualGraphEdgeSelectionGraphMousePlugin
,VisualGraphSatelliteAbstractGraphMousePlugin
,VisualGraphZoomingPickingGraphMousePlugin
public abstract class VisualGraphAbstractGraphMousePlugin<V extends VisualVertex,E extends VisualEdge<V>>
extends edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
implements MouseListener, MouseMotionListener, VisualGraphMousePlugin<V,E>
Usage Notes:
- We clear state on mouseReleased() and mouseExited(), since we will get at least one of those calls
-
Field Summary
Fields inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
cursor, down, modifiers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected boolean
boolean
protected void
installCursor
(Cursor newCursor, MouseEvent e) protected boolean
protected boolean
void
void
void
void
void
void
void
protected boolean
protected boolean
pickVertex
(V vertex, edu.uci.ics.jung.visualization.VisualizationViewer<V, E> viewer) protected void
protected boolean
Methods inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
getCursor, getModifiers, setCursor, setModifiers
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ghidra.graph.viewer.event.mouse.VisualGraphMousePlugin
dispose, getGraphViewer, getSatelliteGraphViewer, getViewer, getViewUpdater, getViewUpdater
-
Field Details
-
isHandlingMouseEvents
protected boolean isHandlingMouseEvents -
selectedVertex
-
selectedEdge
-
-
Constructor Details
-
VisualGraphAbstractGraphMousePlugin
public VisualGraphAbstractGraphMousePlugin() -
VisualGraphAbstractGraphMousePlugin
public VisualGraphAbstractGraphMousePlugin(int selectionModifiers)
-
-
Method Details
-
checkModifiers
- Specified by:
checkModifiers
in interfaceedu.uci.ics.jung.visualization.control.GraphMousePlugin
- Overrides:
checkModifiers
in classedu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
-
checkForVertex
-
checkForEdge
-
pickVertex
-
pickEdge
-
isOverVertex
-
isOverEdge
-
installCursor
-
shouldShowCursor
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
resetState
protected void resetState() -
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-