Package ghidra.graph.viewer.event.mouse
Class VisualGraphTranslatingGraphMousePlugin<V extends VisualVertex,E extends VisualEdge<V>>
- java.lang.Object
-
- edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
-
- ghidra.graph.viewer.event.mouse.VisualGraphTranslatingGraphMousePlugin<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
public class VisualGraphTranslatingGraphMousePlugin<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>
Note: this class is based onTranslatingGraphMousePlugin
.TranslatingGraphMousePlugin uses a MouseButtonOne press and drag gesture to translate the graph display in the x and y direction. The default MouseButtonOne modifier can be overridden to cause a different mouse gesture to translate the display.
-
-
Constructor Summary
Constructors Constructor Description VisualGraphTranslatingGraphMousePlugin()
VisualGraphTranslatingGraphMousePlugin(int modifiers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkModifiers(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)
-
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
-
-
-
-
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
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interfacejava.awt.event.MouseListener
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interfacejava.awt.event.MouseListener
-
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Specified by:
mouseDragged
in interfacejava.awt.event.MouseMotionListener
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
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
-
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Specified by:
mouseMoved
in interfacejava.awt.event.MouseMotionListener
-
-