|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Mouse
Mouse interface provides definitions for generating native mouse events.
| Method Summary | |
|---|---|
void |
click(ScreenLocation screenLoc)
Left-click on a given screen location |
void |
doubleClick(ScreenLocation screenLoc)
Double-click on a given screen location |
void |
drag(ScreenLocation screenLoc)
Drag at a given screen location |
void |
drop(ScreenLocation screenLoc)
Drop at a given screen location |
ScreenLocation |
getLocation()
Get the screen location the mouse cursor is currently at |
void |
hover(ScreenLocation screenLoc)
Hover the mouse cursor to a screen location. |
void |
mouseDown(int buttons)
|
void |
mouseUp()
|
void |
mouseUp(int buttons)
|
void |
move(ScreenLocation screenLoc)
Move the mouse cursor to a destination screen location immediately. |
void |
press()
Press the left button |
void |
release()
Release the left button |
void |
rightClick(ScreenLocation screenLoc)
Right-click on a given screen location |
void |
rightPress()
Press the right button |
void |
rightRelease()
Release the right button |
void |
wheel(int direction,
int steps)
Move the wheel at the current position |
| Method Detail |
|---|
void drag(ScreenLocation screenLoc)
screenLoc - the screen location to dragvoid drop(ScreenLocation screenLoc)
screenLoc - the screen location to dropvoid click(ScreenLocation screenLoc)
screenLoc - the screen location to click onvoid rightClick(ScreenLocation screenLoc)
screenLoc - the screen location to click onvoid doubleClick(ScreenLocation screenLoc)
screenLoc - the screen location to click onvoid hover(ScreenLocation screenLoc)
screenLoc - the screen location for the mouse cursor to hover tovoid move(ScreenLocation screenLoc)
screenLoc - the screen location for the mouse cursor to move tovoid press()
void rightPress()
void release()
void rightRelease()
void wheel(int direction,
int steps)
direction - the direction appliedsteps - the number of stepvoid mouseDown(int buttons)
void mouseUp()
void mouseUp(int buttons)
ScreenLocation getLocation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||