public class Match extends Region implements Comparable
CREATE_X_DIRECTION_LEFT, CREATE_X_DIRECTION_RIGHT, CREATE_Y_DIRECTION_BOTTOM, CREATE_Y_DIRECTION_TOP, h, w, x, y
Modifier | Constructor and Description |
---|---|
protected |
Match(org.sikuli.basics.proxies.FindResult f,
Screen _parent)
internally used constructor used by find image
|
protected |
Match(int x,
int y,
int w,
int h,
double Score,
Screen parent,
String text)
internally used constructor by TextRecognizer.listText()
|
|
Match(Match m)
create a copy of Match object
to e.g. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
boolean |
equals(Object oThat) |
BufferedImage |
getImage()
get the image used for searching as in-memory image
|
String |
getImageFilename()
get the filename of the image used for searching
|
double |
getScore()
the match score
|
Location |
getTarget()
convenience method
|
Location |
getTargetOffset()
convenience - same as for Pattern
|
String |
getText() |
protected void |
setImage(String imageFileName)
internal use: set the image filename after finding with success
|
void |
setTargetOffset(int x,
int y)
like Pattern.TargetOffset sets the click target relative to the center
|
void |
setTargetOffset(Location offset)
like Pattern.TargetOffset sets the click target by offset relative to the
center
|
String |
toString() |
String |
toStringShort() |
above, above, aboveAt, aboveAt, add, add, add, atMouse, below, below, belowAt, belowAt, click, click, click, contains, contains, containsMouse, copyTo, copyTo, create, create, create, create, create, create, doubleClick, doubleClick, doubleClick, drag, dragDrop, dragDrop, dropAt, exists, exists, find, findAll, findAllText, findAllText, findText, findText, getAutoWaitTimeout, getBottomLeft, getBottomRight, getCenter, getEvtMgr, getFindFailedResponse, getH, getLastMatch, getLastMatches, getLastScreenImage, getLastScreenImageFile, getLastScreenImageFile, getLastScreenImageFile, getObserveScanRate, getRect, getScreen, getScreenContaining, getThrowException, getTopLeft, getTopRight, getW, getWaitForVanish, getWaitScanRate, getX, getY, grow, grow, grow, grow, grow, grow, highlight, highlight, highlight, hover, hover, initScreen, inside, intersection, isObserving, keyDown, keyDown, keyUp, keyUp, keyUp, left, left, leftAt, leftAt, listText, morphTo, mouseDown, mouseMove, mouseMove, mouseUp, mouseUp, moveTo, nearby, nearby, observe, observe, observeInBackground, offset, offset, onAppear, onChange, onChange, onVanish, paste, paste, regionOnScreen, resetScreens, right, right, rightAt, rightAt, rightClick, rightClick, rightClick, setAutoWaitTimeout, setBottomLeft, setBottomRight, setCenter, setEvtMgr, setFindFailedResponse, setH, setLocation, setObserveScanRate, setRect, setRect, setRect, setROI, setROI, setROI, setScreen, setScreen, setSize, setThrowException, setTopLeft, setTopRight, setW, setWaitForVanish, setWaitScanRate, setX, setY, showScreens, stopObserver, text, toGlobalCoord, type, type, type, type, type, type, union, updateSelf, wait, wait, wait, waitVanish, waitVanish, wheel, wheel
public Match(Match m)
m
- protected Match(int x, int y, int w, int h, double Score, Screen parent, String text)
x
- x
- w
- h
- Score
- parent
- text
- protected Match(org.sikuli.basics.proxies.FindResult f, Screen _parent)
f
- _parent
- public double getScore()
public void setTargetOffset(Location offset)
offset
- public void setTargetOffset(int x, int y)
x
- y
- public Location getTargetOffset()
protected void setImage(String imageFileName)
imageFileName
- public BufferedImage getImage()
public String getImageFilename()
public String getText()
public int compareTo(Object o)
compareTo
in interface Comparable
public String toStringShort()
toStringShort
in class Region