|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sikuli.api.Relative.RelativeScreenRegionBuilder
public static class Relative.RelativeScreenRegionBuilder
A RelativeScreenRegionBuilder represents a copy of the original ScreenRegion.
| Constructor Summary | |
|---|---|
Relative.RelativeScreenRegionBuilder(ScreenRegion screenRegion)
Constructs a new RelativeScreenRegionBuilder that is a copy of the specified ScreenRegion. |
|
| Method Summary | |
|---|---|
Relative.RelativeScreenRegionBuilder |
above(int amount)
Returns a new RelativeScreenRegionBuilder object that is above this ScreenRegion by the specified amount. |
Relative.RelativeScreenRegionBuilder |
below(int amount)
Returns a new RelativeScreenRegionBuilder object that is below this ScreenRegion by the specified amount. |
Relative.RelativeScreenLocationBuilder |
bottomCenter()
Returns a new RelativeScreenLocationBuilder object that corresponds to the bottom-center of this ScreenRegion. |
Relative.RelativeScreenLocationBuilder |
bottomLeft()
Returns a new RelativeScreenLocationBuilder object that corresponds to the bottom-left corner of this ScreenRegion. |
Relative.RelativeScreenLocationBuilder |
bottomRight()
Returns a new RelativeScreenLocationBuilder object that corresponds to the bottom-right corner of this ScreenRegion. |
Relative.RelativeScreenLocationBuilder |
center()
Returns a new RelativeScreenLocationBuilder object that corresponds to the center of this ScreenRegion. |
ScreenRegion |
getScreenRegion()
Returns the ScreenRegion of this RelativeScreenRegionBuilder. |
Relative.RelativeScreenRegionBuilder |
left(int amount)
Returns a new RelativeScreenRegionBuilder object relative to the left of this ScreenRegion by the specified amount. |
Relative.RelativeScreenLocationBuilder |
middleLeft()
Returns a new RelativeScreenLocationBuilder object that corresponds to the middle-left location of this ScreenRegion. |
Relative.RelativeScreenLocationBuilder |
middleRight()
Returns a new RelativeScreenLocationBuilder object that corresponds to the middle-right location of this ScreenRegion. |
Relative.RelativeScreenRegionBuilder |
narrower(int amount)
Returns a new RelativeScreenRegionBuilder object that is narrower than this ScreenRegion by the specified amount. |
Relative.RelativeScreenRegionBuilder |
offset(int x,
int y)
Returns a new RelativeScreenRegionBuilder object to the offset of the ScreenRegion |
Relative.RelativeScreenRegionBuilder |
region(double xmin,
double ymin,
double xmax,
double ymax)
Returns a new RelativeScreenRegionBuilder object that is a region relative to the upper-left corner (origin) of the ScreenRegion. |
Relative.RelativeScreenRegionBuilder |
region(int x,
int y,
int width,
int height)
Returns a new RelativeScreenRegionBuilder object that is a region relative to the upper-left corner (origin) of this ScreenRegion. |
Relative.RelativeScreenRegionBuilder |
region(Region region)
Returns a new RelativeScreenRegionBuilder object that is a region relative to the upper-left corner (origin) of this ScreenRegion. |
Relative.RelativeScreenRegionBuilder |
right(int amount)
Returns a new RelativeScreenRegionBuilder object relative to the right of this ScreenRegion by the specified amount. |
Relative.RelativeScreenRegionBuilder |
shorter(int amount)
Returns a new RelativeScreenRegionBuilder object that is shorter than this ScreenRegion by the specified amount. |
Relative.RelativeScreenRegionBuilder |
taller(int amount)
Returns a new RelativeScreenRegionBuilder object that is taller than this ScreenRegion by the specified amount. |
Relative.RelativeScreenLocationBuilder |
topCenter()
Returns a new RelativeScreenLocationBuilder object that corresponds to the top-center of this ScreenRegion. |
Relative.RelativeScreenLocationBuilder |
topLeft()
Returns a new RelativeScreenLocationBuilder object that corresponds to the top-left corner of this ScreenRegion. |
Relative.RelativeScreenLocationBuilder |
topRight()
Returns a new RelativeScreenLocationBuilder object that corresponds to the top-right corner of this ScreenRegion. |
Relative.RelativeScreenRegionBuilder |
wider(int amount)
Returns a new RelativeScreenRegionBuilder object that is wider than this ScreenRegion by the specified amount. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Relative.RelativeScreenRegionBuilder(ScreenRegion screenRegion)
screenRegion - the ScreenRegion to which a relative region is created.| Method Detail |
|---|
public Relative.RelativeScreenRegionBuilder offset(int x,
int y)
x - x offsety - y offset
public Relative.RelativeScreenRegionBuilder right(int amount)
amount - the pixel amount to move to the right.
public Relative.RelativeScreenRegionBuilder left(int amount)
amount - the pixel amount to move to the left.
public Relative.RelativeScreenRegionBuilder above(int amount)
amount - the pixel amount to go above.
public Relative.RelativeScreenRegionBuilder below(int amount)
amount - the pixel amount to go below.
public Relative.RelativeScreenRegionBuilder shorter(int amount)
amount - the pixel amount to decrease the height of this ScreenRegion.
public Relative.RelativeScreenRegionBuilder taller(int amount)
amount - the pixel amount to increase the height of this ScreenRegion.
public Relative.RelativeScreenRegionBuilder narrower(int amount)
amount - the pixel amount to decrease the width of this ScreenRegion.
public Relative.RelativeScreenRegionBuilder wider(int amount)
amount - the pixel amount to increase the width of this ScreenRegion.
public Relative.RelativeScreenRegionBuilder region(Region region)
region - the region that is relative to this ScreenRegion
public Relative.RelativeScreenRegionBuilder region(int x,
int y,
int width,
int height)
x - x location of the derived regiony - y location lowerof the derived regionwidth - width of the derived regionheight - height of the derived region
public Relative.RelativeScreenRegionBuilder region(double xmin,
double ymin,
double xmax,
double ymax)
xmin - start x locationymin - start y locationxmax - end x locationymax - end y location
public Relative.RelativeScreenLocationBuilder center()
public Relative.RelativeScreenLocationBuilder topLeft()
public Relative.RelativeScreenLocationBuilder topCenter()
public Relative.RelativeScreenLocationBuilder topRight()
public Relative.RelativeScreenLocationBuilder bottomRight()
public Relative.RelativeScreenLocationBuilder bottomCenter()
public Relative.RelativeScreenLocationBuilder bottomLeft()
public Relative.RelativeScreenLocationBuilder middleLeft()
public Relative.RelativeScreenLocationBuilder middleRight()
public ScreenRegion getScreenRegion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||