|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sikuli.api.DefaultTarget
org.sikuli.api.ImageTarget
public class ImageTarget
An ImageTarget object describes a target using an image.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.sikuli.api.Target |
|---|
Target.Ordering |
| Constructor Summary | |
|---|---|
ImageTarget(BufferedImage targetImage)
Creates an ImageTarget from a BufferedImage. |
|
ImageTarget(File file)
Creates an ImageTarget from a File object. |
|
ImageTarget(URL url)
Creates an ImageTarget from an image at a given URL. |
|
| Method Summary | |
|---|---|
BufferedImage |
getImage()
Returns the image describing this ImageTarget. |
URL |
getURL()
Returns the URL of the image for this ImageTarget. |
BufferedImage |
toImage()
Gets the image representation of this target for visualization purposes |
String |
toString()
Returns a String object representing this ImageTarget object's value. |
| Methods inherited from class org.sikuli.api.DefaultTarget |
|---|
doFindAll, getLimit, getMinScore, getOrdering, setLimit, setMinScore, setOrdering |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.sikuli.api.Target |
|---|
doFindAll, getLimit, getMinScore, getOrdering, setLimit, setMinScore, setOrdering |
| Constructor Detail |
|---|
public ImageTarget(URL url)
url - the URL to load the image.
IOException - thrown if the image can not be loadedpublic ImageTarget(File file)
file - the File to read image data from.
IOException - thrown if the File can not be read.public ImageTarget(BufferedImage targetImage)
targetImage - the image representing this target.| Method Detail |
|---|
public URL getURL()
public String toString()
toString in class Objectpublic BufferedImage getImage()
public BufferedImage toImage()
DefaultTarget
toImage in class DefaultTarget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||