public class LensMagnificationGraphMousePlugin extends AbstractGraphMousePlugin implements MouseWheelListener
| Modifier and Type | Field and Description |
|---|---|
protected float |
ceiling |
protected float |
delta |
protected float |
floor |
cursor, down, modifiers| Constructor and Description |
|---|
LensMagnificationGraphMousePlugin()
Creates an instance with modifier of CTRL_MASK, and default min/max/delta zoom values
of 1/4/0.2.
|
LensMagnificationGraphMousePlugin(float floor,
float ceiling,
float delta)
Creates an instance with modifier of CTRL_MASK, and the specified zoom parameters.
|
LensMagnificationGraphMousePlugin(int modifiers)
Creates an instance with the specified modifiers and the default min/max/delta zoom values
of 1/4/0.2.
|
LensMagnificationGraphMousePlugin(int modifiers,
float floor,
float ceiling,
float delta)
Creates an instance with the specified mouse event modifiers and zoom parameters.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getCursor, getModifiers, setCursor, setModifiersprotected final float floor
protected final float ceiling
protected final float delta
public LensMagnificationGraphMousePlugin()
public LensMagnificationGraphMousePlugin(float floor,
float ceiling,
float delta)
floor - the minimum zoom valueceiling - the maximum zoom valuedelta - the change in zoom value caused by each mouse eventpublic LensMagnificationGraphMousePlugin(int modifiers)
modifiers - the mouse event modifiers to specifypublic LensMagnificationGraphMousePlugin(int modifiers,
float floor,
float ceiling,
float delta)
modifiers - the mouse event modifiers to specifyfloor - the minimum zoom valueceiling - the maximum zoom valuedelta - the change in zoom value caused by each mouse eventpublic boolean checkModifiers(MouseEvent e)
checkModifiers in interface GraphMousePlugincheckModifiers in class AbstractGraphMousePlugine - an event to compare topublic void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved in interface MouseWheelListenerCopyright © 2015. All rights reserved.