Package com.hp.lft.sdk
Class Location
java.lang.Object
com.hp.lft.sdk.Location
Provides a location (relative to an object in the application) for operations that support it.
For example, the Click method uses the Location class to determine where inside this object to perform the click.
For example, the Click method uses the Location class to determine where inside this object to perform the click.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the Location class using the specified object position and an offset (in pixels) of 0,0.Initializes a new instance of the Location class using the specified object position and offset point. -
Method Summary
Modifier and TypeMethodDescriptionReturns the object position from which the offset is taken.Returns the x- and y- offset (in pixels) from the anchor position.void
Sets the object position from which the offset is taken.void
Sets the x- and y- offset (in pixels) from the anchor position.
-
Constructor Details
-
Location
Initializes a new instance of the Location class using the specified object position and an offset (in pixels) of 0,0.- Parameters:
anchor
- the object position from which the offset is taken. Possible values:Position
.
-
Location
Initializes a new instance of the Location class using the specified object position and offset point.- Parameters:
anchor
- the object position from which the offset is taken. Possible values:Position
.offset
- the x- and y- offset (in pixels) from the anchor position.
-
-
Method Details
-
getAnchor
Returns the object position from which the offset is taken. Possible values:Position
.- Returns:
- the
Position
from which the offset is taken.
-
setAnchor
Sets the object position from which the offset is taken. Possible values:Position
.- Parameters:
anchor
- thePosition
from which the offset is taken.
-
getOffset
Returns the x- and y- offset (in pixels) from the anchor position. Default value = 0,0.- Returns:
- the offset point from the anchor.
-
setOffset
Sets the x- and y- offset (in pixels) from the anchor position.- Parameters:
offset
- the offset point from the anchor.
-