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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInitializes 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 Summary
Modifier 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
-
x
The x-coordinate (in pixels) of the test object location. -
y
The y-coordinate (in pixels) of the test object location.
-
-
Constructor Details
-
LocationProperty
public LocationProperty()Initializes a new instance of the LocationProperty class. -
LocationProperty
Initializes a new instance of the LocationProperty class with the specified location values.- Parameters:
location- theLocationto use to initialize the LocationProperty.
-
LocationProperty
Initializes 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.
-
LocationProperty
Initializes a new instance of the LocationProperty class by copying values from the providedLocationPropertyobject.- Parameters:
locationToCopy- theLocationPropertyobject whose values will be copied to the new instance.
-
-
Method Details
-
clone
Description copied from interface:CloneableObjectReturns a clone of this instance.- Specified by:
clonein interfaceCloneableObject- Overrides:
clonein classObject- Returns:
- a clone of this instance.
- Throws:
CloneNotSupportedException- if the instance cannot be cloned.
-
getProperties
- Specified by:
getPropertiesin interfacecom.hp.lft.sdk.internal.GroupedProperty
-
getX
Returns the x-coordinate (in pixels) of the test object location.- Returns:
- the x-coordinate (in pixels) of the test object location.
-
setX
Sets 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).
-
getY
Returns the y-coordinate (in pixels) of the test object location.- Returns:
- the y-coordinate (in pixels) of the test object location.
-
setY
Sets 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
-