Class GraphicsNodeMouseWheelEvent

All Implemented Interfaces:
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:
  • Field Details

    • MOUSE_WHEEL

      public static final int MOUSE_WHEEL
      The id for the "mouseWheelMoved" event.
      See Also:
    • wheelDelta

      protected int wheelDelta
      Indicates 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 originated
      id - the id of this event
      when - the time the event occurred
      wheelDelta - the number of clicks
  • Method Details

    • getWheelDelta

      public int getWheelDelta()
      Returns the number of clicks the wheel has been moved.