public class ObjectLocation extends Object
| Constructor and Description |
|---|
ObjectLocation() |
ObjectLocation(int x,
int y,
int width,
int height)
Object is within this limit.
|
ObjectLocation(Rectangle area)
Object is within this area.
|
ObjectLocation(UIObject refObject,
ReferenceObjectPosition refObjectPosition,
int refObjDistanceInPx)
Object is nearby reference object.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
getImageObjectMatch(SmartAppDriver appDriver,
String imageObject) |
Rectangle |
getRectangleOfImageObject(SmartAppDriver appDriver,
int width,
int height) |
Rectangle |
getRectangleOfImageObject(SmartAppDriver appDriver,
String leftSideImageOfImageObject,
String rightSideImageOfImageObject) |
org.sikuli.script.Region |
getRegion(SmartAppDriver appDriver)
This is applicable only for WITHIN LIMIT object.
|
org.sikuli.script.Region |
getRegionOfImageObject(SmartAppDriver appDriver,
int width,
int height) |
org.sikuli.script.Region |
getRegionOfImageObject(SmartAppDriver appDriver,
String imageObject) |
org.sikuli.script.Region |
getRegionOfImageObject(SmartAppDriver appDriver,
String leftSideImageOfImageObject,
String rightSideImageOfImageObject) |
ObjectLocation |
setLeftMarginOfRefObject(int leftMarginOfRefObjectInPx)
Left Margin of the ref object is applicable if ReferenceObjectPosition is TOP
or Bottom.
|
public ObjectLocation()
public ObjectLocation(int x,
int y,
int width,
int height)
x - y - width - height - public ObjectLocation(Rectangle area)
area - public ObjectLocation(UIObject refObject, ReferenceObjectPosition refObjectPosition, int refObjDistanceInPx)
refObject - refObjectPosition - refObjDistanceInPx - approximate distance of ref object from actual
object to determine object area where it can be
found.public ObjectLocation setLeftMarginOfRefObject(int leftMarginOfRefObjectInPx)
leftMarginOfRefObjectInPx - public Rectangle getRectangleOfImageObject(SmartAppDriver appDriver, String leftSideImageOfImageObject, String rightSideImageOfImageObject)
public Rectangle getRectangleOfImageObject(SmartAppDriver appDriver, int width, int height)
public Rectangle getImageObjectMatch(SmartAppDriver appDriver, String imageObject)
public org.sikuli.script.Region getRegion(SmartAppDriver appDriver)
public org.sikuli.script.Region getRegionOfImageObject(SmartAppDriver appDriver, String leftSideImageOfImageObject, String rightSideImageOfImageObject)
public org.sikuli.script.Region getRegionOfImageObject(SmartAppDriver appDriver, int width, int height)
public org.sikuli.script.Region getRegionOfImageObject(SmartAppDriver appDriver, String imageObject)
Copyright © 2021. All rights reserved.