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 intThe id for the "mouseWheelMoved" event.protected intIndicates the number of wheel notches have been moved.Fields inherited from class 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_MASKFields inherited from class GraphicsNodeEvent
idFields inherited from class 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 TypeMethodDescriptionintReturns the number of clicks the wheel has been moved.Methods inherited from class GraphicsNodeInputEvent
getLockState, getModifiers, getWhen, isAltDown, isAltGraphDown, isControlDown, isMetaDown, isShiftDownMethods inherited from class GraphicsNodeEvent
consume, getGraphicsNode, getID, isConsumedMethods inherited from class 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.
-