buoy.event

Class MousePressedEvent

Implemented Interfaces:
WidgetEvent

public class MousePressedEvent
extends WidgetMouseEvent

This is an event corresponding to the mouse button being pressed.
Author:
Peter Eastman

Constructor Summary

MousePressedEvent(Widget source, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button)
Create a MousePressedEvent.

Method Summary

Methods inherited from class buoy.event.WidgetMouseEvent

getSource, getWidget

Constructor Details

MousePressedEvent

public MousePressedEvent(Widget source,
                         long when,
                         int modifiers,
                         int x,
                         int y,
                         int clickCount,
                         boolean popupTrigger,
                         int button)
Create a MousePressedEvent.
Parameters:
source - the Widget which generated this event
when - the time at which the event occurred
modifiers - 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 occurred
y - the y coordinate at which the event occurred
clickCount - the number of successive times the mouse has been clicked
popupTrigger - true if this event corresponds to the platform-specific trigger for displaying popup menus
button - the flag for the button which has just changed state

Written by Peter Eastman.