class MouseMoveable extends MouseWidgetAction
| Modifier and Type | Field and Description |
|---|---|
private NativePoint |
clickLoc
The screen location of the click mouse event.
|
private NativePoint |
screenLoc
The screen location of the associated widget when left button down.
|
gd, mouseActions, widget| Constructor and Description |
|---|
MouseMoveable(int wid)
Create a new mouse moveable action, for the specified widget.
|
| Modifier and Type | Method and Description |
|---|---|
void |
mouseDragged(java.awt.event.MouseEvent e)
Notification of a mouse dragged event for this
MouseWidgetAction.widget. |
void |
mousePressed(java.awt.event.MouseEvent e)
Notification of a mouse pressed event for this
MouseWidgetAction.widget. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Notification of a mouse released event for this
MouseWidgetAction.widget. |
private void |
updateWidgetLocation(java.awt.event.MouseEvent e)
Update the location of the widget being moved according to the supplied mouse event.
|
getEventId, hasEventprivate NativePoint clickLoc
private NativePoint screenLoc
public MouseMoveable(int wid)
wid - The widget ID.public void mouseDragged(java.awt.event.MouseEvent e)
MouseWidgetAction.widget.mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class java.awt.event.MouseAdaptere - The mouse event.public void mousePressed(java.awt.event.MouseEvent e)
MouseWidgetAction.widget.mousePressed in interface java.awt.event.MouseListenermousePressed in class java.awt.event.MouseAdaptere - The mouse event.public void mouseReleased(java.awt.event.MouseEvent e)
MouseWidgetAction.widget.mouseReleased in interface java.awt.event.MouseListenermouseReleased in class java.awt.event.MouseAdaptere - The mouse event.private void updateWidgetLocation(java.awt.event.MouseEvent e)
e - The mouse event.