Package com.hp.lft.sdk
Class LocationProperty
java.lang.Object
com.hp.lft.sdk.LocationProperty
- All Implemented Interfaces:
- CloneableObject,- com.hp.lft.sdk.internal.GroupedProperty,- Cloneable
public class LocationProperty
extends Object
implements com.hp.lft.sdk.internal.GroupedProperty, CloneableObject
Class for defining a test object's location property.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionInitializes a new instance of the LocationProperty class.LocationProperty(LocationProperty locationToCopy) Initializes a new instance of the LocationProperty class by copying values from the providedLocationPropertyobject.LocationProperty(Point location) Initializes a new instance of the LocationProperty class with the specified location values.LocationProperty(Integer x, Integer y) Initializes a new instance of the LocationProperty class with the specified x and y values.
- 
Method SummaryModifier and TypeMethodDescriptionclone()Returns a clone of this instance.getX()Returns the x-coordinate (in pixels) of the test object location.getY()Returns the y-coordinate (in pixels) of the test object location.Sets the x-coordinate (in pixels) of the test object location.Sets the y-coordinate (in pixels) of the test object location.toString()
- 
Field Details- 
xThe x-coordinate (in pixels) of the test object location.
- 
yThe y-coordinate (in pixels) of the test object location.
 
- 
- 
Constructor Details- 
LocationPropertypublic LocationProperty()Initializes a new instance of the LocationProperty class.
- 
LocationPropertyInitializes a new instance of the LocationProperty class with the specified location values.- Parameters:
- location- the- Locationto use to initialize the LocationProperty.
 
- 
LocationPropertyInitializes a new instance of the LocationProperty class with the specified x and y values.- Parameters:
- x- the x-coordinate (in pixels) of the test object location.
- y- the y-coordinate (in pixels) of the test object location.
 
- 
LocationPropertyInitializes a new instance of the LocationProperty class by copying values from the providedLocationPropertyobject.- Parameters:
- locationToCopy- the- LocationPropertyobject whose values will be copied to the new instance.
 
 
- 
- 
Method Details- 
cloneDescription copied from interface:CloneableObjectReturns a clone of this instance.- Specified by:
- clonein interface- CloneableObject
- Overrides:
- clonein class- Object
- Returns:
- a clone of this instance.
- Throws:
- CloneNotSupportedException- if the instance cannot be cloned.
 
- 
getProperties- Specified by:
- getPropertiesin interface- com.hp.lft.sdk.internal.GroupedProperty
 
- 
getXReturns the x-coordinate (in pixels) of the test object location.- Returns:
- the x-coordinate (in pixels) of the test object location.
 
- 
setXSets the x-coordinate (in pixels) of the test object location.- Parameters:
- x- the x-coordinate (in pixels) of the test object location.
- Returns:
- the LocationPropertyinstance with the updated state (builder pattern).
 
- 
getYReturns the y-coordinate (in pixels) of the test object location.- Returns:
- the y-coordinate (in pixels) of the test object location.
 
- 
setYSets the y-coordinate (in pixels) of the test object location.- Parameters:
- y- the y-coordinate (in pixels) of the test object location.
- Returns:
- the LocationPropertyinstance with the updated state (builder pattern).
 
- 
toString
 
-