Class MouseEventGenerator
- java.lang.Object
-
- org.dreambot.api.input.event.impl.mouse.MouseEventGenerator
-
public class MouseEventGenerator extends java.lang.Object
Utility class to generate aMouseEvent
for the given parameters. Automatically generates necessary modifiers Generally speaking should not be used by scripters but is available if they want to make custom implementations of events.
-
-
Constructor Summary
Constructors Constructor Description MouseEventGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.event.MouseEvent
generateClicked(int x, int y, int clickCount, boolean popupTrigger, int button)
static java.awt.event.MouseEvent
generateClicked(java.awt.Point p, int button)
static java.awt.event.MouseEvent
generateClicked(java.awt.Point p, int clickCount, boolean popupTrigger, int button)
static java.awt.event.MouseEvent
generateDragged(int x, int y, int clickCount, boolean popupTrigger, int button)
static java.awt.event.MouseEvent
generateDragged(java.awt.Point p)
static java.awt.event.MouseEvent
generateDragged(java.awt.Point p, int clickCount, boolean popupTrigger, int button)
static java.awt.event.MouseEvent
generateEntered(int x, int y, int clickCount, boolean popupTrigger, int button)
static java.awt.event.MouseEvent
generateEntered(java.awt.Point p)
static java.awt.event.MouseEvent
generateEntered(java.awt.Point p, int clickCount, boolean popupTrigger, int button)
static java.awt.event.MouseEvent
generateExited(int x, int y, int clickCount, boolean popupTrigger, int button)
static java.awt.event.MouseEvent
generateExited(java.awt.Point p)
static java.awt.event.MouseEvent
generateExited(java.awt.Point p, int clickCount, boolean popupTrigger, int button)
static java.awt.event.MouseEvent
generateMoved(int x, int y, int clickCount, boolean popupTrigger, int button)
static java.awt.event.MouseEvent
generateMoved(java.awt.Point p)
static java.awt.event.MouseEvent
generateMoved(java.awt.Point p, int clickCount, boolean popupTrigger, int button)
static java.awt.event.MouseEvent
generatePressed(int x, int y, int clickCount, boolean popupTrigger, int button)
static java.awt.event.MouseEvent
generatePressed(java.awt.Point p, int button)
static java.awt.event.MouseEvent
generatePressed(java.awt.Point p, int clickCount, boolean popupTrigger, int button)
static java.awt.event.MouseEvent
generateReleased(int x, int y, int clickCount, boolean popupTrigger, int button)
static java.awt.event.MouseEvent
generateReleased(java.awt.Point p, int button)
static java.awt.event.MouseEvent
generateReleased(java.awt.Point p, int clickCount, boolean popupTrigger, int button)
static java.awt.event.MouseEvent
generateWheel(int x, int y, int rotation)
static java.awt.event.MouseEvent
generateWheel(java.awt.Point p, int rotation)
-
-
-
Method Detail
-
generateMoved
public static java.awt.event.MouseEvent generateMoved(java.awt.Point p)
-
generateMoved
public static java.awt.event.MouseEvent generateMoved(java.awt.Point p, int clickCount, boolean popupTrigger, int button)
-
generateMoved
public static java.awt.event.MouseEvent generateMoved(int x, int y, int clickCount, boolean popupTrigger, int button)
-
generateEntered
public static java.awt.event.MouseEvent generateEntered(java.awt.Point p)
-
generateEntered
public static java.awt.event.MouseEvent generateEntered(java.awt.Point p, int clickCount, boolean popupTrigger, int button)
-
generateEntered
public static java.awt.event.MouseEvent generateEntered(int x, int y, int clickCount, boolean popupTrigger, int button)
-
generateDragged
public static java.awt.event.MouseEvent generateDragged(java.awt.Point p)
-
generateDragged
public static java.awt.event.MouseEvent generateDragged(java.awt.Point p, int clickCount, boolean popupTrigger, int button)
-
generateDragged
public static java.awt.event.MouseEvent generateDragged(int x, int y, int clickCount, boolean popupTrigger, int button)
-
generateExited
public static java.awt.event.MouseEvent generateExited(java.awt.Point p)
-
generateExited
public static java.awt.event.MouseEvent generateExited(java.awt.Point p, int clickCount, boolean popupTrigger, int button)
-
generateExited
public static java.awt.event.MouseEvent generateExited(int x, int y, int clickCount, boolean popupTrigger, int button)
-
generatePressed
public static java.awt.event.MouseEvent generatePressed(java.awt.Point p, int button)
-
generatePressed
public static java.awt.event.MouseEvent generatePressed(java.awt.Point p, int clickCount, boolean popupTrigger, int button)
-
generatePressed
public static java.awt.event.MouseEvent generatePressed(int x, int y, int clickCount, boolean popupTrigger, int button)
-
generateReleased
public static java.awt.event.MouseEvent generateReleased(java.awt.Point p, int button)
-
generateReleased
public static java.awt.event.MouseEvent generateReleased(java.awt.Point p, int clickCount, boolean popupTrigger, int button)
-
generateReleased
public static java.awt.event.MouseEvent generateReleased(int x, int y, int clickCount, boolean popupTrigger, int button)
-
generateClicked
public static java.awt.event.MouseEvent generateClicked(java.awt.Point p, int button)
-
generateClicked
public static java.awt.event.MouseEvent generateClicked(java.awt.Point p, int clickCount, boolean popupTrigger, int button)
-
generateClicked
public static java.awt.event.MouseEvent generateClicked(int x, int y, int clickCount, boolean popupTrigger, int button)
-
generateWheel
public static java.awt.event.MouseEvent generateWheel(java.awt.Point p, int rotation)
-
generateWheel
public static java.awt.event.MouseEvent generateWheel(int x, int y, int rotation)
-
-