public static final class WidgetAction.WidgetMouseEvent extends Object implements WidgetAction.WidgetLocationEvent
| Constructor and Description |
|---|
WidgetMouseEvent(long id,
MouseEvent event)
Creates a mouse event.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getButton() |
int |
getClickCount() |
long |
getEventID()
Returns an event id.
|
int |
getModifiers() |
int |
getModifiersEx() |
Point |
getPoint()
Returns stored location.
|
long |
getWhen() |
boolean |
isAltDown() |
boolean |
isAltGraphDown() |
boolean |
isControlDown() |
boolean |
isMetaDown() |
boolean |
isPopupTrigger() |
boolean |
isShiftDown() |
void |
setPoint(Point point)
Sets a new location.
|
void |
translatePoint(int x,
int y)
Translates the stored location.
|
public WidgetMouseEvent(long id,
MouseEvent event)
id - the event idevent - the Swing eventpublic long getEventID()
getEventID in interface WidgetAction.WidgetEventpublic Point getPoint()
getPoint in interface WidgetAction.WidgetLocationEventpublic void setPoint(Point point)
setPoint in interface WidgetAction.WidgetLocationEventpoint - the new locationpublic void translatePoint(int x,
int y)
translatePoint in interface WidgetAction.WidgetLocationEventx - the x-axis additiony - the y-axis additionpublic int getClickCount()
MouseEventpublic int getButton()
MouseEventpublic boolean isPopupTrigger()
MouseEventpublic boolean isShiftDown()
MouseEventpublic boolean isControlDown()
MouseEventpublic boolean isMetaDown()
MouseEventpublic boolean isAltDown()
MouseEventpublic boolean isAltGraphDown()
MouseEventpublic long getWhen()
MouseEventpublic int getModifiers()
MouseEventpublic int getModifiersEx()
MouseEventBuilt on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.