edu.uci.ics.jung.visualization.control
Class LensMagnificationGraphMousePlugin

java.lang.Object
  extended by edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
      extended by 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

Field Summary
protected  float ceiling
           
protected  float delta
           
protected  float floor
           
 
Fields inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
cursor, down, modifiers
 
Constructor Summary
LensMagnificationGraphMousePlugin()
          create an instance with default zoom in/out values
LensMagnificationGraphMousePlugin(float floor, float ceiling, float delta)
          create an instance with passed modifiers
LensMagnificationGraphMousePlugin(int modifiers)
           
LensMagnificationGraphMousePlugin(int modifiers, float floor, float ceiling, float delta)
           
 
Method Summary
 boolean checkModifiers(MouseEvent e)
          override to check equality with a mask
 void mouseWheelMoved(MouseWheelEvent e)
          zoom the display in or out, depending on the direction of the mouse wheel motion.
 
Methods inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
getCursor, getModifiers, setCursor, setModifiers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

floor

protected float floor

ceiling

protected float ceiling

delta

protected float delta
Constructor Detail

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)
Method Detail

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.