org.sikuli.api
Class ForegroundTarget

java.lang.Object
  extended by org.sikuli.api.DefaultTarget
      extended by org.sikuli.api.ForegroundTarget
All Implemented Interfaces:
Target

public class ForegroundTarget
extends DefaultTarget
implements Target

The ForegroundTarget class defines targets based on whether they have textures (as opposed to textureless background). This class can be used to distinguish between foreground targets and the background target.

For example, if you have a solid black background image that contains a small white square, you can use this ForegroundTarget class to find the white square in the black background image without having to specify the image of the white square the target.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.sikuli.api.Target
Target.Ordering
 
Constructor Summary
ForegroundTarget()
          Constructs a new ForegroundTarget with default values.
 
Method Summary
 
Methods inherited from class org.sikuli.api.DefaultTarget
doFindAll, getLimit, getMinScore, getOrdering, setLimit, setMinScore, setOrdering, toImage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sikuli.api.Target
doFindAll, getLimit, getMinScore, getOrdering, setLimit, setMinScore, setOrdering
 

Constructor Detail

ForegroundTarget

public ForegroundTarget()
Constructs a new ForegroundTarget with default values.



Copyright © 2014. All rights reserved.