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(WebBrowser browser,
String imageObject) |
Rectangle |
getRectangleOfImageObject(WebBrowser browser,
int width,
int height) |
Rectangle |
getRectangleOfImageObject(WebBrowser browser,
String leftSideImageOfImageObject,
String rightSideImageOfImageObject) |
org.sikuli.script.Region |
getRegion(WebBrowser browser)
This is applicable only for WITHIN LIMIT object.
|
org.sikuli.script.Region |
getRegionOfImageObject(WebBrowser browser,
int width,
int height) |
org.sikuli.script.Region |
getRegionOfImageObject(WebBrowser browser,
String imageObject) |
org.sikuli.script.Region |
getRegionOfImageObject(WebBrowser browser,
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(WebBrowser browser, String leftSideImageOfImageObject, String rightSideImageOfImageObject)
public Rectangle getRectangleOfImageObject(WebBrowser browser, int width, int height)
public Rectangle getImageObjectMatch(WebBrowser browser, String imageObject)
public org.sikuli.script.Region getRegion(WebBrowser browser)
public org.sikuli.script.Region getRegionOfImageObject(WebBrowser browser, String leftSideImageOfImageObject, String rightSideImageOfImageObject)
public org.sikuli.script.Region getRegionOfImageObject(WebBrowser browser, int width, int height)
public org.sikuli.script.Region getRegionOfImageObject(WebBrowser browser, String imageObject)
Copyright © 2021. All rights reserved.