public interface MouseDriver
Modifier and Type | Method and Description |
---|---|
void |
clickMouse(ComponentOperator oper,
int x,
int y,
int clickCount,
int mouseButton,
int modifiers,
Timeout mouseClick)
Clicks mouse.
|
void |
dragMouse(ComponentOperator oper,
int x,
int y,
int mouseButton,
int modifiers)
Drags mouse.
|
void |
dragNDrop(ComponentOperator oper,
int start_x,
int start_y,
int end_x,
int end_y,
int mouseButton,
int modifiers,
Timeout before,
Timeout after)
Performs drag'n'drop.
|
void |
enterMouse(ComponentOperator oper)
Moves mouse inside a component.
|
void |
exitMouse(ComponentOperator oper)
Moves mouse outside a component.
|
void |
moveMouse(ComponentOperator oper,
int x,
int y)
Moves mouse.
|
void |
pressMouse(ComponentOperator oper,
int x,
int y,
int mouseButton,
int modifiers)
Presses mouse.
|
void |
releaseMouse(ComponentOperator oper,
int x,
int y,
int mouseButton,
int modifiers)
Releases mouse.
|
void pressMouse(ComponentOperator oper, int x, int y, int mouseButton, int modifiers)
oper
- Component operator.x
- Relative x coordinate.y
- Relative y coordinate.mouseButton
- mouse button (InputEvent.BUTTON*_MASK
field)modifiers
- a combination of InputEvent.*_MASK
fields.void releaseMouse(ComponentOperator oper, int x, int y, int mouseButton, int modifiers)
oper
- Component operator.x
- Relative x coordinate.y
- Relative y coordinate.mouseButton
- mouse button (InputEvent.BUTTON*_MASK
field)modifiers
- a combination of InputEvent.*_MASK
fields.void clickMouse(ComponentOperator oper, int x, int y, int clickCount, int mouseButton, int modifiers, Timeout mouseClick)
oper
- Component operator.x
- Relative x coordinate.y
- Relative y coordinate.clickCount
- How many times to click.mouseButton
- mouse button (InputEvent.BUTTON*_MASK
field)modifiers
- a combination of InputEvent.*_MASK
fields.mouseClick
- Time between pressing and releasing mouse.void moveMouse(ComponentOperator oper, int x, int y)
oper
- Component operator.x
- Relative x coordinate.y
- Relative y coordinate.void dragMouse(ComponentOperator oper, int x, int y, int mouseButton, int modifiers)
oper
- Component operator.x
- Relative x coordinate.y
- Relative y coordinate.mouseButton
- mouse button (InputEvent.BUTTON*_MASK
field)modifiers
- a combination of InputEvent.*_MASK
fields.void dragNDrop(ComponentOperator oper, int start_x, int start_y, int end_x, int end_y, int mouseButton, int modifiers, Timeout before, Timeout after)
oper
- Component operator.start_x
- Relative x coordinate of start point.start_y
- Relative y coordinate of start point.end_x
- Relative x coordinate of end point.end_y
- Relative y coordinate of end point.mouseButton
- mouse button (InputEvent.BUTTON*_MASK
field)modifiers
- a combination of InputEvent.*_MASK
fields.before
- Time to sleep after taking (before dragging)after
- Time to sleep before dropping (after dragging)void enterMouse(ComponentOperator oper)
oper
- Component operator.void exitMouse(ComponentOperator oper)
oper
- Component operator.