|
||||||||||
| 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.ScreenRegionCanvas
public class ScreenRegionCanvas
| Constructor Summary | |
|---|---|
ScreenRegionCanvas(ScreenRegion screenRegion)
Constructs a new DesktopCanvas whose screen region is specified with the argument of the same name. |
|
| Method Summary | |
|---|---|
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. |
ScreenRegion |
getScreenRegion()
Returns the ScreenRegion of this ScreenRegionCanvas object. |
void |
hide()
Clears the shown canvas. |
void |
refresh()
|
void |
setScreenRegion(ScreenRegion screenRegion)
Sets the ScreenRegion of this ScreenRegionCanvas object. |
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 ScreenRegionCanvas(ScreenRegion screenRegion)
screenRegion - the specified screen region of the Canvas.| 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 refresh()
public void hide()
Canvas
hide in class Canvaspublic BufferedImage createImage()
createImage in class Canvaspublic ScreenRegion getScreenRegion()
public void setScreenRegion(ScreenRegion screenRegion)
screenRegion - the specified ScreenRegion.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||