public class LensMagnificationGraphMousePlugin extends AbstractGraphMousePlugin implements java.awt.event.MouseWheelListener
| Modifier and Type | Field and Description |
|---|---|
protected float |
ceiling |
protected float |
delta |
protected float |
floor |
cursor, down, modifiers| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkModifiers(java.awt.event.MouseEvent e)
override to check equality with a mask
|
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
zoom the display in or out, depending on the direction of the
mouse wheel motion.
|
getCursor, getModifiers, setCursor, setModifiersprotected float floor
protected float ceiling
protected float delta
public LensMagnificationGraphMousePlugin()
public LensMagnificationGraphMousePlugin(float floor,
float ceiling,
float delta)
modifiers - public LensMagnificationGraphMousePlugin(int modifiers)
public LensMagnificationGraphMousePlugin(int modifiers,
float floor,
float ceiling,
float delta)
public boolean checkModifiers(java.awt.event.MouseEvent e)
checkModifiers in interface GraphMousePlugincheckModifiers in class AbstractGraphMousePlugine - an event to compare topublic void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
mouseWheelMoved in interface java.awt.event.MouseWheelListener