Package org.apache.batik.gvt.event
Class GraphicsNodeMouseWheelEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.apache.batik.gvt.event.GraphicsNodeEvent
-
- org.apache.batik.gvt.event.GraphicsNodeInputEvent
-
- org.apache.batik.gvt.event.GraphicsNodeMouseWheelEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class GraphicsNodeMouseWheelEvent extends GraphicsNodeInputEvent
An event which indicates that a mouse whwel action occurred in a graphics node.- Version:
- $Id: GraphicsNodeMouseWheelEvent.java 1733416 2016-03-03 07:07:13Z gadams $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
MOUSE_WHEEL
The id for the "mouseWheelMoved" event.protected int
wheelDelta
Indicates the number of wheel notches have been moved.-
Fields inherited from class org.apache.batik.gvt.event.GraphicsNodeInputEvent
ALT_GRAPH_MASK, ALT_MASK, BUTTON1_MASK, BUTTON2_MASK, BUTTON3_MASK, CAPS_LOCK_MASK, CTRL_MASK, KANA_LOCK_MASK, lockState, META_MASK, modifiers, NUM_LOCK_MASK, SCROLL_LOCK_MASK, SHIFT_MASK, when
-
Fields inherited from class org.apache.batik.gvt.event.GraphicsNodeEvent
id
-
-
Constructor Summary
Constructors Constructor Description GraphicsNodeMouseWheelEvent(GraphicsNode source, int id, long when, int modifiers, int lockState, int wheelDelta)
Constructs a new graphics node mouse wheel event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getWheelDelta()
Returns the number of clicks the wheel has been moved.-
Methods inherited from class org.apache.batik.gvt.event.GraphicsNodeInputEvent
getLockState, getModifiers, getWhen, isAltDown, isAltGraphDown, isControlDown, isMetaDown, isShiftDown
-
Methods inherited from class org.apache.batik.gvt.event.GraphicsNodeEvent
consume, getGraphicsNode, getID, isConsumed
-
-
-
-
Field Detail
-
MOUSE_WHEEL
public static final int MOUSE_WHEEL
The id for the "mouseWheelMoved" event.- See Also:
- Constant Field Values
-
wheelDelta
protected int wheelDelta
Indicates the number of wheel notches have been moved. Positive for scrolling up/left, negative for down/right.
-
-
Constructor Detail
-
GraphicsNodeMouseWheelEvent
public GraphicsNodeMouseWheelEvent(GraphicsNode source, int id, long when, int modifiers, int lockState, int wheelDelta)
Constructs a new graphics node mouse wheel event.- Parameters:
source
- the graphics node where the event originatedid
- the id of this eventwhen
- the time the event occurredwheelDelta
- the number of clicks
-
-