org.apache.batik.gvt.event

Class GraphicsNodeMouseWheelEvent

public class GraphicsNodeMouseWheelEvent extends GraphicsNodeInputEvent

An event which indicates that a mouse whwel action occurred in a graphics node.
Field Summary
static intMOUSE_WHEEL
The id for the "mouseWheelMoved" event.
protected intwheelDelta
Indicates the number of wheel notches have been moved.
Constructor Summary
GraphicsNodeMouseWheelEvent(GraphicsNode source, int id, long when, int modifiers, int lockState, int wheelDelta)
Constructs a new graphics node mouse wheel event.
Method Summary
intgetWheelDelta()
Returns the number of clicks the wheel has been moved.

Field Detail

MOUSE_WHEEL

public static final int MOUSE_WHEEL
The id for the "mouseWheelMoved" event.

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 originated id the id of this event when the time the event occurred wheelDelta the number of clicks

Method Detail

getWheelDelta

public int getWheelDelta()
Returns the number of clicks the wheel has been moved.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.