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 providedLocationProperty
object.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
- theLocation
to 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 providedLocationProperty
object.- Parameters:
locationToCopy
- theLocationProperty
object whose values will be copied to the new instance.
-
-
Method Details
-
clone
Description copied from interface:CloneableObject
Returns a clone of this instance.- Specified by:
clone
in interfaceCloneableObject
- Overrides:
clone
in classObject
- Returns:
- a clone of this instance.
- Throws:
CloneNotSupportedException
- if the instance cannot be cloned.
-
getProperties
- Specified by:
getProperties
in 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
LocationProperty
instance 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
LocationProperty
instance with the updated state (builder pattern).
-
toString
-