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:
Serializable
An event which indicates that a mouse whwel action occurred in a graphics
node.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The id for the "mouseWheelMoved" event.protected int
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, META_MASK, NUM_LOCK_MASK, SCROLL_LOCK_MASK, SHIFT_MASK
Fields inherited from class org.apache.batik.gvt.event.GraphicsNodeEvent
id
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionGraphicsNodeMouseWheelEvent
(GraphicsNode source, int id, long when, int modifiers, int lockState, int wheelDelta) Constructs a new graphics node mouse wheel event. -
Method Summary
Modifier and TypeMethodDescriptionint
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
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
MOUSE_WHEEL
public static final int MOUSE_WHEELThe id for the "mouseWheelMoved" event.- See Also:
-
wheelDelta
protected int wheelDeltaIndicates the number of wheel notches have been moved. Positive for scrolling up/left, negative for down/right.
-
-
Constructor Details
-
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
-
-
Method Details
-
getWheelDelta
public int getWheelDelta()Returns the number of clicks the wheel has been moved.
-