Example usage for Java java.awt.event MouseWheelEvent fields, constructors, methods, implement or subclass
The text is from its open source code.
int | WHEEL_UNIT_SCROLL Constant representing scrolling by "units" (like scrolling with the arrow keys) |
int | WHEEL_BLOCK_SCROLL Constant representing scrolling by a "block" (like scrolling with page-up, page-down keys) |
MouseWheelEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int scrollType, int scrollAmount, int wheelRotation) Constructs a MouseWheelEvent object with the specified source component, type, modifiers, coordinates, scroll type, scroll amount, and wheel rotation. |
void | consume() Consumes this event so that it will not be processed in the default manner by the source which originated it. |
int | getButton() Returns which, if any, of the mouse buttons has changed state. |
int | getClickCount() Returns the number of mouse clicks associated with this event. |
Component | getComponent() Returns the originator of the event. |
int | getID() Returns the event type. |
int | getModifiers() Returns the modifier mask for this event. |
Point | getPoint() Returns the x,y position of the event relative to the source component. |
double | getPreciseWheelRotation() Returns the number of "clicks" the mouse wheel was rotated, as a double. |
int | getScrollAmount() Returns the number of units that should be scrolled per click of mouse wheel rotation. |
int | getScrollType() Returns the type of scrolling that should take place in response to this event. |
int | getUnitsToScroll() This is a convenience method to aid in the implementation of the common-case MouseWheelListener - to scroll a ScrollPane or JScrollPane by an amount which conforms to the platform settings. |
int | getWheelRotation() Returns the number of "clicks" the mouse wheel was rotated, as an integer. |
long | getWhen() Returns the difference in milliseconds between the timestamp of when this event occurred and midnight, January 1, 1970 UTC. |
int | getX() Returns the horizontal x position of the event relative to the source component. |
int | getY() Returns the vertical y position of the event relative to the source component. |
boolean | isConsumed() Returns whether or not this event has been consumed. |
boolean | isControlDown() Returns whether or not the Control modifier is down on this event. |
boolean | isMetaDown() Returns whether or not the Meta modifier is down on this event. |
boolean | isPopupTrigger() Returns whether or not this mouse event is the popup menu trigger event for the platform. |
boolean | isShiftDown() Returns whether or not the Shift modifier is down on this event. |
String | paramString() Returns a parameter string identifying this event. |