|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sikuli.script.Region
public class Region
Field Summary | |
---|---|
protected double |
_autoWaitTimeout
|
protected FindFailedResponse |
_defaultFindFailedResponse
|
protected EventManager |
_evtMgr
|
protected Match |
_lastMatch
|
protected Iterator<Match> |
_lastMatches
|
protected ScreenImage |
_lastScreenImage
|
protected boolean |
_observing
|
protected boolean |
_throwException
|
int |
h
|
int |
w
|
int |
x
|
int |
y
|
Constructor Summary | |
---|---|
protected |
Region()
|
|
Region(int x_,
int y_,
int w_,
int h_)
|
|
Region(Rectangle r)
|
|
Region(Region r)
|
Method Summary | ||
---|---|---|
Region |
above()
|
|
Region |
above(int range)
|
|
Region |
below()
|
|
Region |
below(int range)
|
|
|
click(PSRML target,
int modifiers)
|
|
|
doubleClick(PSRML target,
int modifiers)
|
|
|
drag(PSRML target)
|
|
|
dragDrop(PSRML t1,
PSRML t2,
int modifiers)
|
|
|
dropAt(PSRML target,
double delay)
|
|
|
exists(PSC target)
|
|
|
exists(PSC target,
double timeout)
Match exists(Pattern/String/PatternClass target, timeout-sec) waits until target appears or timeout (in second) is passed. |
|
|
find(PSC target)
Match find( Pattern/String/PatternClass ) finds the given pattern on the screen and returns the best match. |
|
|
findAll(PSC target)
Iterator |
|
|
findAllNow(PSC ptn)
Match findAllNow( Pattern/String/PatternClass ) finds the given pattern on the screen and returns the best match without waiting. |
|
|
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()
|
|
Iterator<Match> |
getLastMatches()
|
|
|
getLocationFromPSRML(PSRML target)
|
|
Rectangle |
getRect()
|
|
|
getRegionFromPSRM(PSRM target)
|
|
Rectangle |
getROI()
|
|
Screen |
getScreen()
|
|
boolean |
getThrowException()
|
|
Location |
getTopLeft()
|
|
Location |
getTopRight()
|
|
int |
getW()
|
|
int |
getX()
|
|
int |
getY()
|
|
void |
highlight()
|
|
protected void |
highlight(boolean toEnable)
|
|
void |
highlight(float secs)
|
|
|
hover(PSRML target)
|
|
Region |
inside()
|
|
void |
keyDown(String keys)
|
|
void |
keyUp(String keys)
|
|
Region |
left()
|
|
Region |
left(int range)
|
|
Region |
morphTo(Region r)
|
|
void |
mouseDown(int buttons)
|
|
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)
|
|
|
onAppear(PSC target,
SikuliEventObserver observer)
|
|
void |
onChange(int threshold,
SikuliEventObserver observer)
|
|
void |
onChange(SikuliEventObserver observer)
|
|
|
onVanish(PSC target,
SikuliEventObserver observer)
|
|
|
paste(PSRML target,
String text)
|
|
Region |
right()
|
|
Region |
right(int range)
|
|
|
rightClick(PSRML target,
int modifiers)
|
|
void |
setAutoWaitTimeout(double sec)
|
|
void |
setFindFailedResponse(FindFailedResponse res)
|
|
void |
setH(int _h)
|
|
void |
setRect(int X,
int Y,
int W,
int H)
|
|
void |
setRect(Rectangle roi)
|
|
void |
setRect(Region roi)
|
|
void |
setROI(int X,
int Y,
int W,
int H)
|
|
void |
setROI(Rectangle roi)
|
|
void |
setROI(Region roi)
|
|
void |
setThrowException(boolean flag)
|
|
void |
setW(int _w)
|
|
void |
setX(int _x)
|
|
void |
setY(int _y)
|
|
void |
stopObserver()
|
|
String |
text()
|
|
String |
toString()
|
|
|
type(PSRML target,
String text,
int modifiers)
|
|
protected void |
updateSelf()
|
|
|
wait(PSC target)
|
|
|
wait(PSC target,
double timeout)
Match wait(Pattern/String/PatternClass target, timeout-sec) waits until target appears or timeout (in second) is passed |
|
|
waitAll(PSC target,
double timeout)
Deprecated. |
|
|
waitVanish(PSC target)
|
|
|
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)
|
|
|
wheel(PSRML target,
int direction,
int steps)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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 Iterator<Match> _lastMatches
Constructor Detail |
---|
public Region(int x_, int y_, int w_, int h_)
public Region(Rectangle r)
public Region(Region r)
protected Region()
Method Detail |
---|
public void setFindFailedResponse(FindFailedResponse res)
public FindFailedResponse getFindFailedResponse()
public String toString()
toString
in class Object
protected EventManager getEventManager()
protected void updateSelf()
public Screen 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 Rectangle getROI()
public void setROI(int X, int Y, int W, int H)
public void setROI(Region roi)
public void setROI(Rectangle roi)
public void highlight()
protected void highlight(boolean toEnable)
public void highlight(float secs)
public Rectangle getRect()
public void setRect(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 offset(Location loc)
public Region moveTo(Location loc)
public Region morphTo(Region r)
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
FindFailed
public <PSC> Iterator<Match> findAll(PSC target) throws FindFailed
FindFailed
public <PSC> Match wait(PSC target) throws FindFailed
FindFailed
public <PSC> Match wait(PSC target, double timeout) throws FindFailed
FindFailed
public <PSC> Match exists(PSC target)
public <PSC> Match exists(PSC target, double timeout)
public <PSC> boolean waitVanish(PSC target)
public <PSC> boolean waitVanish(PSC target, double timeout)
public <PSRML> int click(PSRML target, int modifiers) throws FindFailed
FindFailed
public <PSRML> int doubleClick(PSRML target, int modifiers) throws FindFailed
FindFailed
public <PSRML> int rightClick(PSRML target, int modifiers) throws FindFailed
FindFailed
public int wheel(int direction, int steps) throws FindFailed
FindFailed
public <PSRML> int wheel(PSRML target, int direction, int steps) throws FindFailed
FindFailed
public <PSRML> int hover(PSRML target) throws FindFailed
FindFailed
public <PSRML> int dragDrop(PSRML t1, PSRML t2, int modifiers) throws FindFailed
FindFailed
public <PSRML> int drag(PSRML target) throws FindFailed
FindFailed
public <PSRML> int dropAt(PSRML target, double delay) throws FindFailed
FindFailed
public <PSRML> int type(PSRML target, String text, int modifiers) throws FindFailed
FindFailed
public <PSRML> int paste(PSRML target, String text) throws FindFailed
FindFailed
public void mouseDown(int buttons)
public void mouseUp(int buttons)
public void keyDown(String keys)
public void keyUp(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 Iterator<Match> getLastMatches()
public String text()
public <PSC> Match findNow(PSC ptn) throws FindFailed
FindFailed
public <PSC> Iterator<Match> findAllNow(PSC ptn) throws FindFailed
FindFailed
@Deprecated public <PSC> Iterator<Match> waitAll(PSC target, double timeout) throws FindFailed
FindFailed
public <PSRM> Region getRegionFromPSRM(PSRM target) throws FindFailed
FindFailed
public <PSRML> Location getLocationFromPSRML(PSRML target) throws FindFailed
FindFailed
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |