edu.uci.ics.jung.visualization.control
Class LensMagnificationGraphMousePlugin
java.lang.Object
edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
edu.uci.ics.jung.visualization.control.LensMagnificationGraphMousePlugin
- All Implemented Interfaces:
- GraphMousePlugin, MouseWheelListener, EventListener
public class LensMagnificationGraphMousePlugin
- extends AbstractGraphMousePlugin
- implements MouseWheelListener
HyperbolicMagnificationGraphMousePlugin changes the magnification
within the Hyperbolic projection of the HyperbolicTransformer.
- Author:
- Tom Nelson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
floor
protected float floor
ceiling
protected float ceiling
delta
protected float delta
LensMagnificationGraphMousePlugin
public LensMagnificationGraphMousePlugin()
- create an instance with default zoom in/out values
LensMagnificationGraphMousePlugin
public LensMagnificationGraphMousePlugin(float floor,
float ceiling,
float delta)
- create an instance with passed modifiers
- Parameters:
modifiers
-
LensMagnificationGraphMousePlugin
public LensMagnificationGraphMousePlugin(int modifiers)
LensMagnificationGraphMousePlugin
public LensMagnificationGraphMousePlugin(int modifiers,
float floor,
float ceiling,
float delta)
checkModifiers
public boolean checkModifiers(MouseEvent e)
- override to check equality with a mask
- Specified by:
checkModifiers
in interface GraphMousePlugin
- Overrides:
checkModifiers
in class AbstractGraphMousePlugin
- Parameters:
e
- an event to compare to
- Returns:
- whether the member modifers match the event modifiers
mouseWheelMoved
public void mouseWheelMoved(MouseWheelEvent e)
- zoom the display in or out, depending on the direction of the
mouse wheel motion.
- Specified by:
mouseWheelMoved
in interface MouseWheelListener
Copyright © 2009. All Rights Reserved.