public class BidiMouse extends Mouse
| 限定符和类型 | 方法和说明 |
|---|---|
void |
click(double x,
double y,
MouseClickOptions options) |
void |
down(MouseOptions options)
按下鼠标。
|
DragData |
drag(Point start,
Point target)
调度 drag 事件。
|
void |
dragAndDrop(Point start,
Point target,
int delay)
按顺序执行拖动、拖动、拖动和放置。
|
void |
dragEnter(Point target,
DragData data)
调度 dragenter 事件。
|
void |
dragOver(Point target,
DragData data)
调度 dragover 事件。
|
void |
drop(Point target,
DragData data)
按顺序执行 dragenter、dragover 和 drop。
|
void |
move(double x,
double y,
MouseMoveOptions options)
将鼠标移动到给定的坐标。
|
void |
reset()
将鼠标重置为默认状态:没有按下任何按钮;位置在 (0,0)。
|
void |
up(MouseOptions options)
释放鼠标。
|
void |
wheel(MouseWheelOptions options)
触发一个鼠标滚轮事件
|
public BidiMouse(BidiPage page)
public void move(double x,
double y,
MouseMoveOptions options)
Mousepublic void down(MouseOptions options)
Mousepublic void up(MouseOptions options)
Mousepublic void click(double x,
double y,
MouseClickOptions options)
public void wheel(MouseWheelOptions options)
Mousepublic void dragAndDrop(Point start, Point target, int delay) throws InterruptedException
MousedragAndDrop 在类中 Mousestart - 拖动的点target - 点放在delay - (可选的)选项的对象。接受延迟,如果指定,则为 dragover 和 drop 之间等待的时间(以毫秒为单位)。默认为 0。InterruptedExceptionCopyright © 2020–2025. All rights reserved.