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>
-
- All Implemented Interfaces:
edu.uci.ics.jung.visualization.control.GraphMousePlugin,VisualGraphMousePlugin<V,E>,java.awt.event.MouseListener,java.awt.event.MouseMotionListener,java.util.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 java.awt.event.MouseListener, java.awt.event.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 Change Modifier and Type Field Description NEW protected booleanisHandlingMouseEventsNEW protected EselectedEdgeNEW protected VselectedVertex
-
Constructor Summary
Constructors Change Constructor Description VisualGraphAbstractGraphMousePlugin()VisualGraphAbstractGraphMousePlugin(int selectionModifiers)
-
Method Summary
All Methods Instance Methods Concrete Methods Change Modifier and Type Method Description NEW protected booleancheckForEdge(java.awt.event.MouseEvent e)NEW protected booleancheckForVertex(java.awt.event.MouseEvent e)NEW protected voidinstallCursor(java.awt.Cursor newCursor, java.awt.event.MouseEvent e)NEW protected booleanisOverEdge(java.awt.event.MouseEvent e)NEW protected booleanisOverVertex(java.awt.event.MouseEvent e)voidmouseClicked(java.awt.event.MouseEvent e)voidmouseDragged(java.awt.event.MouseEvent e)voidmouseEntered(java.awt.event.MouseEvent e)voidmouseExited(java.awt.event.MouseEvent e)voidmouseMoved(java.awt.event.MouseEvent e)voidmousePressed(java.awt.event.MouseEvent e)voidmouseReleased(java.awt.event.MouseEvent e)protected booleanpickEdge(E edge, edu.uci.ics.jung.visualization.VisualizationViewer<V,E> viewer)protected booleanpickVertex(V vertex, edu.uci.ics.jung.visualization.VisualizationViewer<V,E> viewer)NEW protected voidresetState()NEW protected booleanshouldShowCursor(java.awt.event.MouseEvent e)-
Methods inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
checkModifiers, 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
getGraphViewer, getSatelliteGraphViewer, getViewer, getViewUpdater, getViewUpdater
-
-
-
-
Field Detail
-
selectedVertex NEW
protected V extends VisualVertex selectedVertex
Constructor Detail
-
VisualGraphAbstractGraphMousePlugin
public VisualGraphAbstractGraphMousePlugin()
-
VisualGraphAbstractGraphMousePlugin
public VisualGraphAbstractGraphMousePlugin(int selectionModifiers)
-
-
Method Detail
-
pickVertex
protected boolean pickVertex(V vertex, edu.uci.ics.jung.visualization.VisualizationViewer<V,E> viewer)
-
pickEdge
protected boolean pickEdge(E edge, edu.uci.ics.jung.visualization.VisualizationViewer<V,E> viewer)
-
installCursor NEW
protected void installCursor(java.awt.Cursor newCursor, java.awt.event.MouseEvent e)
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressedin interfacejava.awt.event.MouseListener
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClickedin interfacejava.awt.event.MouseListener
-
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Specified by:
mouseDraggedin interfacejava.awt.event.MouseMotionListener
-
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Specified by:
mouseMovedin interfacejava.awt.event.MouseMotionListener
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEnteredin interfacejava.awt.event.MouseListener
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExitedin interfacejava.awt.event.MouseListener
-
-