Class SatelliteTranslatingGraphMousePlugin
java.lang.Object
edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
edu.uci.ics.jung.visualization.control.TranslatingGraphMousePlugin
edu.uci.ics.jung.visualization.control.SatelliteTranslatingGraphMousePlugin
- All Implemented Interfaces:
GraphMousePlugin,MouseListener,MouseMotionListener,EventListener
Overrides TranslatingGraphMousePlugin so that mouse events in
the satellite view cause translating of the main view
- Author:
- Tom Nelson
- See Also:
-
Field Summary
Fields inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
cursor, down, modifiers -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class edu.uci.ics.jung.visualization.control.TranslatingGraphMousePlugin
mouseClicked, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleasedMethods inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
checkModifiers, getCursor, getModifiers, setCursor, setModifiers
-
Constructor Details
-
SatelliteTranslatingGraphMousePlugin
public SatelliteTranslatingGraphMousePlugin() -
SatelliteTranslatingGraphMousePlugin
public SatelliteTranslatingGraphMousePlugin(int modifiers)
-
-
Method Details
-
mouseDragged
Check the modifiers. If accepted, translate the main view according to the dragging of the mouse pointer in the satellite view- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classTranslatingGraphMousePlugin- Parameters:
e- the event
-