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.AbstractGraphMousePluginAbstractGraphMousePlugin.Selecting
 
- 
 - 
Field Summary- 
Fields inherited from class org.jungrapht.visualization.control.TranslatingGraphMousePlugintranslatingMask
 - 
Fields inherited from class org.jungrapht.visualization.control.AbstractGraphMousePlugincursor, down, modifiers
 
- 
 - 
Constructor SummaryConstructors Constructor Description SatelliteTranslatingGraphMousePlugin(int translatingMask)
 - 
Method SummaryAll 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.TranslatingGraphMousePluginmouseEntered, mouseExited, mouseMoved, mouseReleased, toString
 - 
Methods inherited from class org.jungrapht.visualization.control.AbstractGraphMousePlugincheckModifiers, getCursor, getModifiersEx, setCursor, setModifiers
 
- 
 
- 
- 
- 
Method Detail- 
mousePressedpublic 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 interface- MouseListener
- Overrides:
- mousePressedin class- TranslatingGraphMousePlugin
- Parameters:
- e- the event
 
 - 
mouseClickedpublic void mouseClicked(MouseEvent e) - Specified by:
- mouseClickedin interface- MouseListener
- Overrides:
- mouseClickedin class- TranslatingGraphMousePlugin
 
 - 
mouseDraggedpublic 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 interface- MouseMotionListener
- Overrides:
- mouseDraggedin class- TranslatingGraphMousePlugin
- Parameters:
- e- the event
 
 
- 
 
-