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>
,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 Modifier and Type Field Description protected boolean
isHandlingMouseEvents
protected E
selectedEdge
protected V
selectedVertex
-
Constructor Summary
Constructors Constructor Description VisualGraphAbstractGraphMousePlugin()
VisualGraphAbstractGraphMousePlugin(int selectionModifiers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkForEdge(java.awt.event.MouseEvent e)
protected boolean
checkForVertex(java.awt.event.MouseEvent e)
boolean
checkModifiers(java.awt.event.MouseEvent e)
protected void
installCursor(java.awt.Cursor newCursor, java.awt.event.MouseEvent e)
protected boolean
isOverEdge(java.awt.event.MouseEvent e)
protected boolean
isOverVertex(java.awt.event.MouseEvent e)
void
mouseClicked(java.awt.event.MouseEvent e)
void
mouseDragged(java.awt.event.MouseEvent e)
void
mouseEntered(java.awt.event.MouseEvent e)
void
mouseExited(java.awt.event.MouseEvent e)
void
mouseMoved(java.awt.event.MouseEvent e)
void
mousePressed(java.awt.event.MouseEvent e)
void
mouseReleased(java.awt.event.MouseEvent e)
protected boolean
pickEdge(E edge, edu.uci.ics.jung.visualization.VisualizationViewer<V,E> viewer)
protected boolean
pickVertex(V vertex, edu.uci.ics.jung.visualization.VisualizationViewer<V,E> viewer)
protected void
resetState()
protected boolean
shouldShowCursor(java.awt.event.MouseEvent e)
-
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 Detail
-
isHandlingMouseEvents
protected boolean isHandlingMouseEvents
-
selectedVertex
protected V extends VisualVertex selectedVertex
-
selectedEdge
protected E extends VisualEdge<V> selectedEdge
-
-
Method Detail
-
checkModifiers
public boolean checkModifiers(java.awt.event.MouseEvent e)
- Specified by:
checkModifiers
in interfaceedu.uci.ics.jung.visualization.control.GraphMousePlugin
- Overrides:
checkModifiers
in classedu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
-
checkForVertex
protected boolean checkForVertex(java.awt.event.MouseEvent e)
-
checkForEdge
protected boolean checkForEdge(java.awt.event.MouseEvent e)
-
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)
-
isOverVertex
protected boolean isOverVertex(java.awt.event.MouseEvent e)
-
isOverEdge
protected boolean isOverEdge(java.awt.event.MouseEvent e)
-
installCursor
protected void installCursor(java.awt.Cursor newCursor, java.awt.event.MouseEvent e)
-
shouldShowCursor
protected boolean shouldShowCursor(java.awt.event.MouseEvent e)
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interfacejava.awt.event.MouseListener
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
in interfacejava.awt.event.MouseListener
-
resetState
protected void resetState()
-
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Specified by:
mouseDragged
in interfacejava.awt.event.MouseMotionListener
-
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Specified by:
mouseMoved
in interfacejava.awt.event.MouseMotionListener
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interfacejava.awt.event.MouseListener
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEntered
in interfacejava.awt.event.MouseListener
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited
in interfacejava.awt.event.MouseListener
-
-