Class SatelliteTranslatingGraphMousePlugin
- java.lang.Object
-
- org.jungrapht.visualization.control.AbstractGraphMousePlugin
-
- org.jungrapht.visualization.control.TranslatingGraphMousePlugin
-
- org.jungrapht.visualization.control.SatelliteTranslatingGraphMousePlugin
-
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener,GraphMousePlugin
public class SatelliteTranslatingGraphMousePlugin extends TranslatingGraphMousePlugin
Overrides TranslatingGraphMousePlugin so that mouse events in the satellite view cause translating of the main view- Author:
- Tom Nelson
- See Also:
SatelliteTranslatingGraphMousePlugin
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jungrapht.visualization.control.AbstractGraphMousePlugin
AbstractGraphMousePlugin.Selecting
-
-
Field Summary
-
Fields inherited from class org.jungrapht.visualization.control.TranslatingGraphMousePlugin
translatingMask
-
Fields inherited from class org.jungrapht.visualization.control.AbstractGraphMousePlugin
cursor, down, modifiers
-
-
Constructor Summary
Constructors Constructor Description SatelliteTranslatingGraphMousePlugin(int translatingMask)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmouseClicked(MouseEvent e)voidmouseDragged(MouseEvent e)Check the modifiers.voidmousePressed(MouseEvent e)Check the event modifiers.-
Methods inherited from class org.jungrapht.visualization.control.TranslatingGraphMousePlugin
mouseEntered, mouseExited, mouseMoved, mouseReleased, toString
-
Methods inherited from class org.jungrapht.visualization.control.AbstractGraphMousePlugin
checkModifiers, getCursor, getModifiersEx, setCursor, setModifiers
-
-
-
-
Method Detail
-
mousePressed
public void mousePressed(MouseEvent e)
Description copied from class:TranslatingGraphMousePluginCheck the event modifiers. Set the 'down' point for later use. If this event satisfies the modifiers, change the cursor to the system 'move cursor'- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classTranslatingGraphMousePlugin- Parameters:
e- the event
-
mouseClicked
public void mouseClicked(MouseEvent e)
- Specified by:
mouseClickedin interfaceMouseListener- Overrides:
mouseClickedin classTranslatingGraphMousePlugin
-
mouseDragged
public void mouseDragged(MouseEvent e)
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
-
-