public static final class WidgetAction.WidgetMouseWheelEvent extends Object implements WidgetAction.WidgetLocationEvent
Constructor and Description |
---|
WidgetMouseWheelEvent(long id,
MouseWheelEvent event)
Creates a mouse wheel 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.
|
int |
getScrollAmount() |
int |
getScrollType() |
int |
getUnitsToScroll() |
int |
getWheelRotation() |
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 WidgetMouseWheelEvent(long id, MouseWheelEvent event)
id
- the event idevent
- the Swing eventpublic long getEventID()
getEventID
in interface WidgetAction.WidgetEvent
public Point getPoint()
getPoint
in interface WidgetAction.WidgetLocationEvent
public void setPoint(Point point)
setPoint
in interface WidgetAction.WidgetLocationEvent
point
- the new locationpublic void translatePoint(int x, int y)
translatePoint
in interface WidgetAction.WidgetLocationEvent
x
- the x-axis additiony
- the y-axis additionpublic int getClickCount()
MouseEvent
public int getButton()
MouseEvent
public boolean isPopupTrigger()
MouseEvent
public boolean isShiftDown()
MouseEvent
public boolean isControlDown()
MouseEvent
public boolean isMetaDown()
MouseEvent
public boolean isAltDown()
MouseEvent
public boolean isAltGraphDown()
MouseEvent
public long getWhen()
MouseEvent
public int getModifiers()
MouseEvent
public int getModifiersEx()
MouseEvent
public int getScrollType()
MouseWheelEvent
public int getScrollAmount()
MouseWheelEvent
public int getWheelRotation()
MouseWheelEvent
public int getUnitsToScroll()
MouseWheelEvent