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 SummaryConstructorsConstructorDescriptionInitializes 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 SummaryModifier and TypeMethodDescriptionReturns the object position from which the offset is taken.Returns the x- and y- offset (in pixels) from the anchor position.voidSets the object position from which the offset is taken.voidSets the x- and y- offset (in pixels) from the anchor position.
- 
Constructor Details- 
LocationInitializes 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.
 
- 
LocationInitializes 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- 
getAnchorReturns the object position from which the offset is taken. Possible values:Position.- Returns:
- the Positionfrom which the offset is taken.
 
- 
setAnchorSets the object position from which the offset is taken. Possible values:Position.- Parameters:
- anchor- the- Positionfrom which the offset is taken.
 
- 
getOffsetReturns the x- and y- offset (in pixels) from the anchor position. Default value = 0,0.- Returns:
- the offset point from the anchor.
 
- 
setOffsetSets the x- and y- offset (in pixels) from the anchor position.- Parameters:
- offset- the offset point from the anchor.
 
 
-