edu.uci.ics.jung.visualization.control
Class ShearingGraphMousePlugin
java.lang.Object
edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
edu.uci.ics.jung.visualization.control.ShearingGraphMousePlugin
- All Implemented Interfaces:
- GraphMousePlugin, MouseListener, MouseMotionListener, EventListener
- Direct Known Subclasses:
- SatelliteShearingGraphMousePlugin
public class ShearingGraphMousePlugin
- extends AbstractGraphMousePlugin
- implements MouseListener, MouseMotionListener
ShearingGraphMousePlugin allows the user to drag with the mouse
to shear the transform either in the horizontal or vertical direction.
By default, the control or meta key must be depressed to activate
shearing.
- Author:
- Tom Nelson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShearingGraphMousePlugin
public ShearingGraphMousePlugin()
- create an instance with default modifier values
ShearingGraphMousePlugin
public ShearingGraphMousePlugin(int modifiers)
- create an instance with passed modifier values
- Parameters:
modifiers
- the mouse modifiers to use
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressed
in interface MouseListener
- Parameters:
e
- the event
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased
in interface MouseListener
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDragged
in interface MouseMotionListener
mouseClicked
public void mouseClicked(MouseEvent e)
- Specified by:
mouseClicked
in interface MouseListener
mouseEntered
public void mouseEntered(MouseEvent e)
- Specified by:
mouseEntered
in interface MouseListener
mouseExited
public void mouseExited(MouseEvent e)
- Specified by:
mouseExited
in interface MouseListener
mouseMoved
public void mouseMoved(MouseEvent e)
- Specified by:
mouseMoved
in interface MouseMotionListener
Copyright © 2009. All Rights Reserved.