|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sikuli.api.visual.Canvas
public abstract class Canvas
Canvas class is the abstract base class for all canvas context.
| Constructor Summary | |
|---|---|
Canvas()
|
|
| Method Summary | |
|---|---|
CanvasBuilder.ElementAdder |
add()
|
void |
add(Element element)
|
StyleBuilder |
addBox(Region screenRegion)
Deprecated. |
StyleBuilder |
addCircle(Location screenLocation,
int radius)
Deprecated. |
StyleBuilder |
addDot(Location screenLocation)
Deprecated. |
StyleBuilder |
addImage(Location screenLocation,
BufferedImage image)
Deprecated. |
StyleBuilder |
addLabel(Location location,
String labelText)
Deprecated. |
StyleBuilder |
addLabel(Region region,
String labelText)
Deprecated. |
Canvas |
clear()
Removes all canvas elements. |
abstract BufferedImage |
createImage()
|
abstract void |
display(double seconds)
Displays a canvas for the specified duration. |
void |
display(int seconds)
Displays a canvas for the specified duration. |
abstract void |
displayWhile(Runnable runnable)
Displays the canvas and blocks the calling thread, while running the passed runnable on a background thread. |
abstract void |
hide()
Clears the shown canvas. |
abstract void |
show()
Shows a canvas. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Canvas()
| Method Detail |
|---|
public void add(Element element)
@Deprecated
public StyleBuilder addCircle(Location screenLocation,
int radius)
screenLocation - the specified screen location.radius - the specified radius of the circle.
@Deprecated public StyleBuilder addDot(Location screenLocation)
screenLocation - the specified screen location.
@Deprecated
public StyleBuilder addImage(Location screenLocation,
BufferedImage image)
screenLocation - the specified screen location.image - the specified image.
public CanvasBuilder.ElementAdder add()
@Deprecated public StyleBuilder addBox(Region screenRegion)
screenRegion - the specified screen region.
@Deprecated
public StyleBuilder addLabel(Region region,
String labelText)
region - the specified screen region.labelText - the specified text.
@Deprecated
public StyleBuilder addLabel(Location location,
String labelText)
location - the specified screen location.labelText - the specified text.
public Canvas clear()
public void display(int seconds)
seconds - the specified duration in seconds.public abstract void display(double seconds)
seconds - the specified duration in seconds.public abstract void displayWhile(Runnable runnable)
runnable - A runnable to run in the background.public abstract void show()
hide() method.
public abstract void hide()
public abstract BufferedImage createImage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||