Modifier and Type | Field and Description |
---|---|
protected double |
_autoWaitTimeout |
protected FindFailedResponse |
_defaultFindFailedResponse |
protected EventManager |
_evtMgr |
protected Match |
_lastMatch |
protected java.util.Iterator<Match> |
_lastMatches |
protected ScreenImage |
_lastScreenImage |
protected boolean |
_observing |
protected boolean |
_throwException |
int |
h |
int |
w |
int |
x |
int |
y |
Modifier | Constructor and Description |
---|---|
protected |
Region() |
|
Region(int x_,
int y_,
int w_,
int h_)
Deprecated.
Not for public use in Java. Use Region.create() instead.
|
|
Region(java.awt.Rectangle r)
Deprecated.
Not for public use in Java. Use Region.create() instead.
|
|
Region(Region r)
Deprecated.
Not for public use in Java. Use Region.create() instead.
|
Modifier and Type | Method and Description |
---|---|
Region |
above() |
Region |
above(int range) |
Region |
below() |
Region |
below(int range) |
<PSRML> int |
click(PSRML target)
Click on the item provided by "target"
|
<PSRML> int |
click(PSRML target,
int modifiers)
Click on the item provided by "target"
|
static Region |
create(int x_,
int y_,
int w_,
int h_)
Create a region with the provided coordinate / size
|
static Region |
create(java.awt.Rectangle rect)
Create a region from a Rectangle
|
static Region |
create(java.awt.Rectangle r,
IScreen parentScreen) |
static Region |
create(Region r)
Create a region from an other region
|
<PSRML> int |
doubleClick(PSRML target)
Double click on the item provided by "target"
|
<PSRML> int |
doubleClick(PSRML target,
int modifiers)
Double click on the item provided by "target"
|
<PSRML> int |
drag(PSRML target) |
<PSRML> int |
dragDrop(PSRML t1,
PSRML t2)
Drag and drop from a position to the other
|
<PSRML> int |
dragDrop(PSRML t1,
PSRML t2,
int modifiers)
Drag and drop from a position to the other
|
<PSRML> int |
dropAt(PSRML target) |
<PSRML> int |
dropAt(PSRML target,
double delay) |
<PSC> Match |
exists(PSC target)
Check if target exists (with the default autoWaitTimeout)
|
<PSC> Match |
exists(PSC target,
double timeout)
Check if target exists with a specified timeout
|
<PSC> Match |
find(PSC target)
Match find( Pattern/String/PatternClass )
finds the given pattern on the screen and returns the best match.
|
<PSC> java.util.Iterator<Match> |
findAll(PSC target)
Iterator
|
<PSC> java.util.Iterator<Match> |
findAllNow(PSC ptn)
Match findAllNow( Pattern/String/PatternClass )
finds the given pattern on the screen and returns the best match
without waiting.
|
<PSC> Match |
findNow(PSC ptn)
Match findNow( Pattern/String/PatternClass )
finds the given pattern on the screen and returns the best match
without waiting.
|
double |
getAutoWaitTimeout() |
Location |
getBottomLeft() |
Location |
getBottomRight() |
Location |
getCenter() |
protected EventManager |
getEventManager() |
FindFailedResponse |
getFindFailedResponse() |
int |
getH() |
Match |
getLastMatch() |
java.util.Iterator<Match> |
getLastMatches() |
<PSRML> Location |
getLocationFromPSRML(PSRML target)
Figure out where is located target
|
java.awt.Rectangle |
getRect() |
<PSRM> Region |
getRegionFromPSRM(PSRM target)
Figure out where is located target
|
java.awt.Rectangle |
getROI() |
IScreen |
getScreen() |
boolean |
getThrowException() |
Location |
getTopLeft() |
Location |
getTopRight() |
int |
getW() |
int |
getX() |
int |
getY() |
void |
highlight() |
protected void |
highlight(boolean toEnable) |
void |
highlight(float secs) |
<PSRML> int |
hover(PSRML target) |
protected void |
init(int x_,
int y_,
int w_,
int h_,
IScreen parentScreen) |
Region |
inside() |
void |
keyDown(int keycode)
press down the key (given by the key code) on the underlying device.
|
void |
keyDown(java.lang.String keys) |
void |
keyUp() |
void |
keyUp(int keycode)
release the key (given by the key code) on the underlying device.
|
void |
keyUp(java.lang.String keys) |
Region |
left() |
Region |
left(int range) |
java.util.List<Match> |
listText() |
Region |
morphTo(Region r) |
void |
mouseDown(int buttons) |
<PSRML> int |
mouseMove(PSRML target) |
void |
mouseUp() |
void |
mouseUp(int buttons) |
Region |
moveTo(Location loc) |
Region |
nearby() |
Region |
nearby(int range) |
void |
observe() |
void |
observe(double secs) |
void |
observeInBackground(double secs) |
Region |
offset(Location loc) |
<PSC> void |
onAppear(PSC target,
SikuliEventObserver observer) |
void |
onChange(int threshold,
SikuliEventObserver observer) |
void |
onChange(SikuliEventObserver observer) |
<PSC> void |
onVanish(PSC target,
SikuliEventObserver observer) |
<PSRML> int |
paste(PSRML target,
java.lang.String text) |
int |
paste(java.lang.String text) |
Region |
right() |
Region |
right(int range) |
<PSRML> int |
rightClick(PSRML target)
Right click on the item provided by "target"
|
<PSRML> int |
rightClick(PSRML target,
int modifiers)
Right click on the item provided by "target"
|
void |
setAutoWaitTimeout(double sec) |
void |
setFindFailedResponse(FindFailedResponse res) |
void |
setH(int _h) |
void |
setRect(int X,
int Y,
int W,
int H) |
void |
setRect(java.awt.Rectangle roi) |
void |
setRect(Region roi) |
void |
setROI(int X,
int Y,
int W,
int H) |
void |
setROI(java.awt.Rectangle roi) |
void |
setROI(Region roi) |
void |
setThrowException(boolean flag) |
void |
setW(int _w) |
void |
setX(int _x) |
void |
setY(int _y) |
void |
stopObserver() |
java.lang.String |
text() |
static Region |
toJythonRegion(Region r) |
java.lang.String |
toString() |
<PSRML> int |
type(PSRML target,
java.lang.String text) |
<PSRML> int |
type(PSRML target,
java.lang.String text,
int modifiers) |
<PSRML> int |
type(java.lang.String text) |
<PSRML> int |
type(java.lang.String text,
int modifiers) |
protected void |
updateSelf() |
void |
wait(double timeout) |
<PSC> Match |
wait(PSC target) |
<PSC> Match |
wait(PSC target,
double timeout)
Match wait(Pattern/String/PatternClass target, timeout-sec)
waits until target appears or timeout (in second) is passed
|
<PSC> java.util.Iterator<Match> |
waitAll(PSC target,
double timeout)
Deprecated.
|
<PSC> boolean |
waitVanish(PSC target) |
<PSC> boolean |
waitVanish(PSC target,
double timeout)
boolean waitVanish(Pattern/String/PatternClass target, timeout-sec)
waits until target vanishes or timeout (in second) is passed
|
int |
wheel(int direction,
int steps)
Move the wheel at the current position
|
<PSRML> int |
wheel(PSRML target,
int direction,
int steps)
Move the wheel at the specified position
|
public int x
public int y
public int w
public int h
protected FindFailedResponse _defaultFindFailedResponse
protected boolean _throwException
protected double _autoWaitTimeout
protected boolean _observing
protected EventManager _evtMgr
protected ScreenImage _lastScreenImage
protected Match _lastMatch
protected java.util.Iterator<Match> _lastMatches
@Deprecated public Region(int x_, int y_, int w_, int h_)
x_
- X positiony_
- Y positionw_
- widthh_
- heigth@Deprecated public Region(java.awt.Rectangle r)
r
- the Rectangle@Deprecated public Region(Region r)
r
- the regionprotected Region()
public void setFindFailedResponse(FindFailedResponse res)
public FindFailedResponse getFindFailedResponse()
public static Region create(java.awt.Rectangle rect)
r
- the Rectanglepublic static Region create(int x_, int y_, int w_, int h_)
x_
- X positiony_
- Y positionw_
- widthh_
- heigthpublic static Region create(Region r)
r
- the regionpublic java.lang.String toString()
toString
in class java.lang.Object
protected void init(int x_, int y_, int w_, int h_, IScreen parentScreen)
protected EventManager getEventManager()
protected void updateSelf()
public IScreen getScreen()
public int getX()
public int getY()
public int getW()
public int getH()
public void setX(int _x)
public void setY(int _y)
public void setW(int _w)
public void setH(int _h)
public java.awt.Rectangle getROI()
public void setROI(int X, int Y, int W, int H)
public void setROI(Region roi)
public void setROI(java.awt.Rectangle roi)
public void highlight()
protected void highlight(boolean toEnable)
public void highlight(float secs)
public java.awt.Rectangle getRect()
public void setRect(java.awt.Rectangle roi)
public void setRect(int X, int Y, int W, int H)
public void setRect(Region roi)
public Location getCenter()
public Location getTopLeft()
public Location getTopRight()
public Location getBottomLeft()
public Location getBottomRight()
public Region nearby()
public Region nearby(int range)
public Region right()
public Region right(int range)
public Region left()
public Region left(int range)
public Region above()
public Region above(int range)
public Region below()
public Region below(int range)
public Region inside()
public void setThrowException(boolean flag)
public void setAutoWaitTimeout(double sec)
public boolean getThrowException()
public double getAutoWaitTimeout()
public <PSC> Match find(PSC target) throws FindFailed
target
- A search criteriaFindFailed
- if the Find operation failedpublic <PSC> java.util.Iterator<Match> findAll(PSC target) throws FindFailed
target
- A search criteriaFindFailed
- if the Find operation failedpublic void wait(double timeout)
public <PSC> Match wait(PSC target) throws FindFailed
FindFailed
public <PSC> Match wait(PSC target, double timeout) throws FindFailed
target
- A search criteriatimeout
- Timeout in secondsFindFailed
- if the Find operation failedpublic <PSC> Match exists(PSC target)
target
- A search criteriapublic <PSC> Match exists(PSC target, double timeout)
target
- A search criteriatimeout
- Timeout in secondpublic <PSC> boolean waitVanish(PSC target)
public <PSC> boolean waitVanish(PSC target, double timeout)
public <PSRML> int click(PSRML target) throws FindFailed
target
- Where to clickFindFailed
- if the Find operation failedpublic <PSRML> int click(PSRML target, int modifiers) throws FindFailed
target
- Where to clickmodifiers
- Can be 0 (no modifier), K_SHIFT, K_CTRL, K_ALT or K_METAFindFailed
- if the Find operation failedpublic <PSRML> int doubleClick(PSRML target) throws FindFailed
target
- Where to double clickFindFailed
- if the Find operation failedpublic <PSRML> int doubleClick(PSRML target, int modifiers) throws FindFailed
target
- Where to double clickmodifiers
- Can be 0 (no modifier), K_SHIFT, K_CTRL, K_ALT or K_METAFindFailed
- if the Find operation failedpublic <PSRML> int rightClick(PSRML target) throws FindFailed
target
- Where to right clickFindFailed
- if the Find operation failedpublic <PSRML> int rightClick(PSRML target, int modifiers) throws FindFailed
target
- Where to right clickmodifiers
- Can be 0 (no modifier), K_SHIFT, K_CTRL, K_ALT or K_METAFindFailed
- if the Find operation failedpublic int wheel(int direction, int steps) throws FindFailed
direction
- the direction appliedsteps
- the number of stepFindFailed
public <PSRML> int wheel(PSRML target, int direction, int steps) throws FindFailed
target
- The specified positiondirection
- the direction appliedsteps
- the number of stepFindFailed
- if the Find operation failedpublic <PSRML> int mouseMove(PSRML target) throws FindFailed
FindFailed
public <PSRML> int hover(PSRML target) throws FindFailed
FindFailed
public <PSRML> int dragDrop(PSRML t1, PSRML t2) throws FindFailed
t1
- The specified source positiont2
- The specified destination positionFindFailed
- if the Find operation failedpublic <PSRML> int dragDrop(PSRML t1, PSRML t2, int modifiers) throws FindFailed
t1
- The specified source positiont2
- The specified destination positionmodifiers
- Can be 0 (no modifier), K_SHIFT, K_CTRL, K_ALT or K_METAFindFailed
- if the Find operation failedpublic <PSRML> int drag(PSRML target) throws FindFailed
FindFailed
public <PSRML> int dropAt(PSRML target) throws FindFailed
FindFailed
public <PSRML> int dropAt(PSRML target, double delay) throws FindFailed
FindFailed
public <PSRML> int type(java.lang.String text) throws FindFailed
FindFailed
public <PSRML> int type(java.lang.String text, int modifiers) throws FindFailed
FindFailed
public <PSRML> int type(PSRML target, java.lang.String text) throws FindFailed
FindFailed
public <PSRML> int type(PSRML target, java.lang.String text, int modifiers) throws FindFailed
FindFailed
public int paste(java.lang.String text) throws FindFailed
FindFailed
public <PSRML> int paste(PSRML target, java.lang.String text) throws FindFailed
FindFailed
public void mouseDown(int buttons)
public void mouseUp()
public void mouseUp(int buttons)
public void keyDown(int keycode)
public void keyUp(int keycode)
public void keyDown(java.lang.String keys)
public void keyUp()
public void keyUp(java.lang.String keys)
public <PSC> void onAppear(PSC target, SikuliEventObserver observer)
public <PSC> void onVanish(PSC target, SikuliEventObserver observer)
public void onChange(int threshold, SikuliEventObserver observer)
public void onChange(SikuliEventObserver observer)
public void observe()
public void observeInBackground(double secs)
public void stopObserver()
public void observe(double secs)
public Match getLastMatch()
public java.util.Iterator<Match> getLastMatches()
public java.lang.String text()
public java.util.List<Match> listText()
public <PSC> Match findNow(PSC ptn) throws FindFailed
FindFailed
public <PSC> java.util.Iterator<Match> findAllNow(PSC ptn) throws FindFailed
FindFailed
@Deprecated public <PSC> java.util.Iterator<Match> waitAll(PSC target, double timeout) throws FindFailed
FindFailed
public <PSRM> Region getRegionFromPSRM(PSRM target) throws FindFailed
target
- The specified positionFindFailed
public <PSRML> Location getLocationFromPSRML(PSRML target) throws FindFailed
target
- The specified positionFindFailed