|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sikuli.api.visual.Canvas
org.sikuli.api.visual.ImageCanvas
public class ImageCanvas
| Constructor Summary | |
|---|---|
ImageCanvas(BufferedImage image)
|
|
ImageCanvas(URL imageUrl)
|
|
| Method Summary | |
|---|---|
static BufferedImage |
createComponentImage(Component component)
|
BufferedImage |
createImage()
|
void |
display(double seconds)
Displays a canvas for the specified duration. |
void |
display(int seconds)
Displays a canvas for the specified duration. |
void |
displayWhile(Runnable runnable)
Displays the canvas and blocks the calling thread, while running the passed runnable on a background thread. |
void |
hide()
Clears the shown canvas. |
void |
show()
Shows a canvas. |
| Methods inherited from class org.sikuli.api.visual.Canvas |
|---|
add, add, addBox, addCircle, addDot, addImage, addLabel, addLabel, clear |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageCanvas(URL imageUrl)
public ImageCanvas(BufferedImage image)
| Method Detail |
|---|
public void display(int seconds)
Canvas
display in class Canvasseconds - the specified duration in seconds.public void display(double seconds)
Canvas
display in class Canvasseconds - the specified duration in seconds.public void displayWhile(Runnable runnable)
Canvas
displayWhile in class Canvasrunnable - A runnable to run in the background.public void show()
CanvasCanvas.hide() method.
show in class Canvaspublic void hide()
Canvas
hide in class Canvaspublic BufferedImage createImage()
createImage in class Canvaspublic static BufferedImage createComponentImage(Component component)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||