com.aspose.html.dom.events

Class WheelEvent



  • @DOMObjectAttribute
     @DOMNameAttribute(name="WheelEvent")
    public class WheelEvent
    extends MouseEvent

    The WheelEvent interface provides specific contextual information associated with wheel events. To create an instance of the WheelEvent interface, use the WheelEvent constructor, passing an optional WheelEventInit dictionary.

    • Field Detail

      • DOM_DELTA_PIXEL

        public static final long DOM_DELTA_PIXEL

        The units of measurement for the delta MUST be pixels. This is the most typical case in most operating system and implementation configurations.

        See Also:
        Constant Field Values
      • DOM_DELTA_LINE

        public static final long DOM_DELTA_LINE

        The units of measurement for the delta MUST be individual lines of text. This is the case for many form controls.

        See Also:
        Constant Field Values
      • DOM_DELTA_PAGE

        public static final long DOM_DELTA_PAGE

        The units of measurement for the delta MUST be pages, either defined as a single screen or as a demarcated page.

        See Also:
        Constant Field Values
    • Constructor Detail

      • WheelEvent

        public WheelEvent(String type)

        Initializes a new instance of the WheelEvent class.

        Parameters:
        type - The event type.
      • WheelEvent

        public WheelEvent(String type,
                          WheelEvent.WheelEventInit eventInitDict)

        Initializes a new instance of the WheelEvent class.

        Parameters:
        type - The event type.
        eventInitDict - The event initialize dictionary.
    • Method Detail

      • getDeltaX

        @DOMNameAttribute(name="deltaX")
        public double getDeltaX()

        In user agents where the default action of the wheel event is to scroll, the value MUST be the measurement along the x-axis (in pixels, lines, or pages) to be scrolled in the case where the event is not cancelled. Otherwise, this is an implementation-specific measurement (in pixels, lines, or pages) of the movement of a wheel device around the x-axis.

        Value: The deltaX attribute.
      • getDeltaY

        @DOMNameAttribute(name="deltaY")
        public double getDeltaY()

        In user agents where the default action of the wheel event is to scroll, the value MUST be the measurement along the y-axis (in pixels, lines, or pages) to be scrolled in the case where the event is not cancelled. Otherwise, this is an implementation-specific measurement (in pixels, lines, or pages) of the movement of a wheel device around the y-axis.

        Value: The deltaY attribute.
      • getDeltaZ

        @DOMNameAttribute(name="deltaZ")
        public double getDeltaZ()

        In user agents where the default action of the wheel event is to scroll, the value MUST be the measurement along the z-axis (in pixels, lines, or pages) to be scrolled in the case where the event is not cancelled. Otherwise, this is an implementation-specific measurement (in pixels, lines, or pages) of the movement of a wheel device around the z-axis.

        Value: The deltaZ attribute.
      • getDeltaMode

        @DOMNameAttribute(name="deltaMode")
        public long getDeltaMode()

        The deltaMode attribute contains an indication of the units of measurement for the delta values. The default value is DOM_DELTA_PIXEL (pixels).

        Value: The delta mode.