buoy.event
Class MouseScrolledEvent
MouseWheelEvent
buoy.event.MouseScrolledEvent
- WidgetEvent
public class MouseScrolledEvent
extends MouseWheelEvent
This class defines an event caused by rotating the scroll wheel on a mouse.
MouseScrolledEvent(Widget source, long when, int modifiers, int x, int y, int scrollType, int scrollAmount, int wheelRotation) - Create a MouseScrolledEvent.
|
Object | getSource() - Get the object which generated this event.
|
Widget | getWidget() - Get the Widget which generated this event.
|
MouseScrolledEvent
public MouseScrolledEvent(Widget source,
long when,
int modifiers,
int x,
int y,
int scrollType,
int scrollAmount,
int wheelRotation)
Create a MouseScrolledEvent.
source
- the Widget which generated this eventwhen
- the time at which the event occurredmodifiers
- describes the state of various keys and buttons at the time when the event occurred
(a sum of the constants defined by InputEvent)x
- the x coordinate at which the event occurredy
- the y coordinate at which the event occurredscrollType
- the type of scrolling which should occur in response to this event (either
WHEEL_UNIT_SCROLL or WHEEL_BLOCK_SCROLL)scrollAmount
- the number of units which should be scrolled in response to this eventwheelRotation
- the total distance the mouse wheel was rotated
getSource
public Object getSource()
Get the object which generated this event.
Written by Peter Eastman.