|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sikuli.api.DefaultRegion
public class DefaultRegion
The DefaultRegion class is used to describe a region of the screen.
| Constructor Summary | |
|---|---|
DefaultRegion(int x,
int y,
int width,
int height)
Constructs a new screen region whose upper-left corner is specified as (x,y) and whose width and height are specified by the arguments of the same name. |
|
DefaultRegion(Rectangle bounds)
Constructs a new screen region, initialized to match the bounds of the specified Rectangle. |
|
| Method Summary | |
|---|---|
Rectangle |
getBounds()
Returns the bounding Rectangle of this Region. |
int |
getHeight()
|
int |
getWidth()
|
int |
getX()
|
int |
getY()
|
void |
setBounds(Rectangle newBounds)
Sets the bounding Rectangle of this Rectangle. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultRegion(int x,
int y,
int width,
int height)
x - the specified X coordinatey - the specified Y coordinatewidth - the specified width of the screen region.height - the specified height of the screen region.public DefaultRegion(Rectangle bounds)
bounds - the Rectangle from which to create the initial values of the newly constructed screen region.| Method Detail |
|---|
public Rectangle getBounds()
Region
getBounds in interface Regionpublic void setBounds(Rectangle newBounds)
Region
setBounds in interface RegionnewBounds - the specified bounding Rectangle.public int getX()
getX in interface Regionpublic int getY()
getY in interface Regionpublic int getWidth()
getWidth in interface Regionpublic int getHeight()
getHeight in interface Region
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||