|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Target
The Target interface allows you to specify what targets to find or wait for
and also to specify several control parameters. It is intended mainly to
passed as an input argument to target finding functions such as
ScreenRegion.find(Target) and ScreenRegion.findAll(Target).
The Target class is an abstract base class. As such, you should not use this
class directly. Instead, you should use one of the concrete classes inheriting
from this class, such as ImageTarget, TextTarget, StyledRectangleTarget,
MultiStateTarget, ColorImageTarget, and ForegroundTarget.
| Nested Class Summary | |
|---|---|
static class |
Target.Ordering
Defines a set of constants to use to indicate how multiple targets should be ordered by find functions |
| Method Summary | |
|---|---|
List<ScreenRegion> |
doFindAll(ScreenRegion screenRegion)
Sorts all found instances of a screenRegion objects according to the Ordering value of this Target. |
int |
getLimit()
Returns the limit on the number of matched targets to return. |
double |
getMinScore()
Returns the minimum matching score of this Target. |
Target.Ordering |
getOrdering()
Returns the Ordering of matched targets this Target uses. |
void |
setLimit(int limit)
Sets the limit on the number of matched targets to return. |
void |
setMinScore(double minScore)
Sets the minimum matching score. |
void |
setOrdering(Target.Ordering ordering)
Sets the ordering of the matched targets. |
| Method Detail |
|---|
double getMinScore()
void setMinScore(double minScore)
minScore - the minimum matching score value for a target to be considered a match.int getLimit()
void setLimit(int limit)
limit - the number of matches used by this TargetTarget.Ordering getOrdering()
void setOrdering(Target.Ordering ordering)
ordering - the Ordering of the matched targets for this TargetList<ScreenRegion> doFindAll(ScreenRegion screenRegion)
screenRegion - the ScreenRegion to be sorted with other unsorted regions.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||