public class Match extends Region implements Comparable<Match>
Region.
Pattern)BB, BH, BL, BM, BR, C2, CH, CREATE_X_DIRECTION_LEFT, CREATE_X_DIRECTION_RIGHT, CREATE_Y_DIRECTION_BOTTOM, CREATE_Y_DIRECTION_TOP, CV, EAST, EAST_MID, EAST_NORTH, EAST_SOUTH, EH, EM, EN, ES, h, LB, LH, LL, LM, LT, M2, M3, MH, MID_HORIZONTAL, MID_VERTICAL, MIDDLE, MIDDLE_BIG, MM, MV, NE, NH, NM, NORTH, NORTH_EAST, NORTH_MID, NORTH_WEST, NW, otherScreen, RB, RH, RM, RR, RT, SE, SH, SM, SOUTH, SOUTH_EAST, SOUTH_MID, SOUTH_WEST, SW, TH, TL, TM, TR, TT, w, WEST, WEST_MID, WEST_NORTH, WEST_SOUTH, WH, WM, WN, WS, x, y| Modifier | Constructor and Description |
|---|---|
protected |
Match(FindResult f,
IScreen _parent)
internally used constructor used by findX image
|
protected |
Match(int x,
int y,
int w,
int h,
double Score,
IScreen parent,
String text)
internally used constructor by TextRecognizer.listText()
|
|
Match(Match m)
create a copy of Match object
to e.g. set another TargetOffset for same match |
|
Match(Region reg,
double sc)
create a Match from a region with given SimScore
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Match m) |
boolean |
equals(Object oThat) |
Image |
getImage()
get the image used for searching
|
String |
getImageFilename()
get the filename of the image used for searching
|
int |
getIndex() |
double |
getScore()
the match score
|
Location |
getTarget()
convenience method
|
Location |
getTargetOffset()
convenience - same as
Pattern.getTargetOffset() |
String |
getText() |
long |
getTime() |
protected void |
setImage(Image img)
set the image after finding with success
|
void |
setIndex(int index) |
void |
setOnScreen(boolean state) |
void |
setTarget(int tx,
int ty)
INTERNAL USE
|
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 |
void |
setTimes(long ftime,
long stime)
INTERNAL USE
set the elapsed times from search
|
String |
toString() |
String |
toStringShort() |
above, above, aboveAt, aboveAt, add, add, add, aInput, aKey, asOffset, aSwipe, aSwipeDown, aSwipeLeft, aSwipeRight, aSwipeUp, aTap, atMouse, below, below, belowAt, belowAt, checkMatch, click, click, click, compare, compare, contains, contains, containsMouse, copyTo, copyTo, create, create, create, create, create, create, delayClick, delayType, doubleClick, doubleClick, doubleClick, drag, dragDrop, dragDrop, dropAt, exists, exists, find, findAll, findAllByColumn, findAllByRow, findAllText, findBest, findText, findText, get, getAutoWaitTimeout, getBottomLeft, getBottomRight, getCell, getCenter, getCol, getCol, getCols, getColW, getEvent, getEvents, getFindFailedResponse, getH, getIDString, getLastMatch, getLastMatches, getLastScreenImage, getLastScreenImageFile, getLastScreenImageFile, getLastScreenImageFile, getLocationFromTarget, getObserver, getObserveScanRate, getRect, getRectangle, getRepeatWaitTime, getROI, getRow, getRow, getRowH, getRows, getScreen, getScreenContaining, getThrowException, getTopLeft, getTopRight, getW, getWaitScanRate, getX, getY, grow, grow, grow, grow, grow, grow, grow, hasEvents, hasObserver, highlight, highlight, highlight, highlight, highlight, highlight, hover, hover, initScreen, inside, intersection, isObserving, isOtherScreen, isRasterValid, isValid, isVirtual, keyDown, keyDown, keyUp, keyUp, keyUp, left, left, leftAt, leftAt, listText, morphTo, mouseDown, mouseMove, mouseMove, mouseMove, mouseUp, mouseUp, moveTo, nearby, nearby, observe, observe, observeInBackground, observeInLine, offset, offset, onAppear, onAppear, onChange, onChange, onChange, onChange, onChangeDo, onVanish, onVanish, paste, paste, regionOnScreen, resetScreens, right, right, rightAt, rightAt, rightClick, rightClick, rightClick, saveLastScreenImage, saveScreenCapture, saveScreenCapture, saveScreenCapture, setActive, setAutoWaitTimeout, setBottomLeft, setBottomRight, setCenter, setCols, setFindFailedHandler, setFindFailedResponse, setH, setImageMissingHandler, setInactive, setLocation, setObserveScanRate, setOtherScreen, setOtherScreen, setRaster, setRect, setRect, setRect, setRepeatWaitTime, setROI, setROI, setROI, setROI, setRows, setScreen, setScreen, setSize, setThrowException, setTopLeft, setTopRight, setVirtual, setW, setWaitScanRate, setX, setY, showScreens, silentHighlight, stopObserver, stopObserver, text, toGlobalCoord, type, type, type, type, type, type, union, updateSelf, virtual, wait, wait, wait, waitVanish, waitVanish, wheel, wheel, wheel, writepublic Match(Match m)
m - other Matchpublic Match(Region reg, double sc)
reg - Regionsc - SimScoreprotected Match(int x,
int y,
int w,
int h,
double Score,
IScreen parent,
String text)
x - xy - yw - widthh - heightScore - SimScoreparent - Screentext - given textprotected Match(FindResult f, IScreen _parent)
f - _parent - public void setOnScreen(boolean state)
public int getIndex()
public void setIndex(int index)
public void setTimes(long ftime,
long stime)
ftime - timestime - timepublic long getTime()
public double getScore()
public Location getTarget()
public void setTargetOffset(Location offset)
Pattern.targetOffset
sets the click target by offset relative to the centeroffset - as a Locationpublic void setTargetOffset(int x,
int y)
Pattern.targetOffset
sets the click target relative to the centerx - x offsety - y offsetpublic Location getTargetOffset()
Pattern.getTargetOffset()protected void setImage(Image img)
img - Imagepublic Image getImage()
public String getImageFilename()
public String getText()
public int compareTo(Match m)
compareTo in interface Comparable<Match>public String toStringShort()
toStringShort in class Regionpublic void setTarget(int tx,
int ty)
tx - xty - yCopyright © 2017. All rights reserved.