Class 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 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 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.