|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Target | |
|---|---|
| org.sikuli.api | Provides the classes necessary to find targets and the classes to create screen regions and locations. |
| org.sikuli.api.event | Contains the classes for creating visual based events fired when the visual appearance of targets changes. |
| Uses of Target in org.sikuli.api |
|---|
| Classes in org.sikuli.api that implement Target | |
|---|---|
class |
ColorImageTarget
The ColorImageTarget class defines targets based on color patterns. |
class |
DefaultTarget
DefaultTarget is the abstract base class for all targets. |
class |
ForegroundTarget
The ForegroundTarget class defines targets based on whether they have textures (as opposed to textureless background). |
class |
ImageTarget
An ImageTarget object describes a target using an image. |
class |
MultiStateTarget
The MultiStateTarget class defines a target that may look differently according its state. |
class |
StyledRectangleTarget
StyledRectangleTarget class is used to identify rectangular targets that have a particular rectangle style (lines and corners) while ignoring the content inside the rectangle. |
| Methods in org.sikuli.api that return types with arguments of type Target | |
|---|---|
Map<Target,Object> |
ScreenRegion.getStates()
Returns a map of Target objects and states, which can be any object, for this screen region. |
Map<Target,Object> |
DefaultScreenRegion.getStates()
Returns a map of Target objects and states, which can be any object,
of this DefaultScreenRegion. |
| Methods in org.sikuli.api with parameters of type Target | |
|---|---|
void |
ScreenRegion.addState(Target target,
Object state)
Defines a new state of this screen region as represented by the presence of the given target. |
void |
MultiStateTarget.addState(Target target,
Object state)
Adds a new state to this MultiStateTarget object as represented by the presence of the given target. |
void |
DefaultScreenRegion.addState(Target target,
Object state)
|
void |
ScreenRegion.addTargetEventListener(Target target,
TargetEventListener listener)
Adds a listener for a given target. |
void |
DefaultScreenRegion.addTargetEventListener(Target target,
TargetEventListener listener)
|
ScreenRegion |
ScreenRegion.find(Target target)
Finds a target on the screen immediately. |
ScreenRegion |
DefaultScreenRegion.find(Target target)
|
List<ScreenRegion> |
ScreenRegion.findAll(Target target)
Finds all the instances of the target on the screen immediately. |
List<ScreenRegion> |
DefaultScreenRegion.findAll(Target target)
|
void |
ScreenRegion.removeState(Target target)
Removes a particular state represented by the given target from this screen region. |
void |
DefaultScreenRegion.removeState(Target target)
|
void |
ScreenRegion.removeTargetEventListener(Target target,
TargetEventListener listener)
Removes a particular listener for a particular target. |
void |
DefaultScreenRegion.removeTargetEventListener(Target target,
TargetEventListener listener)
|
ScreenRegion |
ScreenRegion.wait(Target target,
int mills)
Blocks and waits until a target is found in this screen region within a given time period. |
ScreenRegion |
DefaultScreenRegion.wait(Target target,
int mills)
|
| Uses of Target in org.sikuli.api.event |
|---|
| Methods in org.sikuli.api.event that return Target | |
|---|---|
Target |
TargetEvent.getTarget()
Returns the Target object of this TargetEvent. |
| Methods in org.sikuli.api.event with parameters of type Target | |
|---|---|
void |
VisualEventManager.addTargetEventListener(ScreenRegion screenRegion,
Target target,
TargetEventListener listener)
|
void |
VisualEventManager.removeTargetEventListener(ScreenRegion screenRegion,
Target target,
TargetEventListener listener)
|
| Constructors in org.sikuli.api.event with parameters of type Target | |
|---|---|
TargetEvent(Target target,
ScreenRegion screenRegion,
ScreenRegion targetRegion)
Constructs a new TargetEvent from the specified Target and ScreenRegion, and targetRegion. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||