Package codedraw

Class MouseWheelEvent

java.lang.Object
codedraw.Event
codedraw.MouseWheelEvent

public class MouseWheelEvent extends Event
This argument is given each time the mouse wheel is turned.
  • Method Details

    • getWheelRotation

      public double getWheelRotation()
      Returns the amount of wheel rotation. One rotation is one click on the mouse. For high resolution scrolling there are fractional rotations. Positive values are returned for scrolling towards the user, negative values when scrolling away from the user.
      Returns:
      the wheel rotation.
    • toString

      public String toString()
      Overrides:
      toString in class Object