com.hp.lft.sdk

Class SizeProperty

  • java.lang.Object
    • com.hp.lft.sdk.SizeProperty
  • All Implemented Interfaces:
    CloneableObject, com.hp.lft.sdk.internal.GroupedProperty, java.lang.Cloneable


    public class SizeProperty
    extends java.lang.Object
    implements com.hp.lft.sdk.internal.GroupedProperty, CloneableObject
    The size properties of a test object.
    • Field Summary

      Modifier and TypeField and Description
      java.lang.Integerheight
      The horizontal component of the test object size.
      java.lang.Integerwidth
      The vertical component of the test object size.
    • Constructor Summary

      Constructor and Description
      SizeProperty()
      Initializes a new instance of the SizeProperty class.
      SizeProperty(java.awt.Dimension size)
      Initializes a new instance of the SizeProperty class with the provided Dimension.
      SizeProperty(java.lang.Integer width, java.lang.Integer height)
      Initializes a new instance of the SizeProperty class with the specified width and height values.
      SizeProperty(SizeProperty sizeToCopy)
      Initializes a new instance of the SizeProperty class by copying the values of the provided SizeProperty.
    • Method Summary

      Modifier and TypeMethod and Description
      java.lang.Objectclone()
      Returns a clone of this instance.
      java.lang.IntegergetHeight()
      Returns the horizontal component of the test object size.
      java.util.Map<java.lang.String,java.lang.Object>getProperties() 
      java.lang.IntegergetWidth()
      Returns the vertical component of the test object size.
      SizePropertysetHeight(java.lang.Integer height)
      Sets the horizontal component of the test object size.
      SizePropertysetWidth(java.lang.Integer width)
      Returns the vertical component of the test object size.
      java.lang.StringtoString() 
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • height

        public java.lang.Integer height
        The horizontal component of the test object size.
      • width

        public java.lang.Integer width
        The vertical component of the test object size.
    • Constructor Detail

      • SizeProperty

        public SizeProperty()
        Initializes a new instance of the SizeProperty class.
      • SizeProperty

        public SizeProperty(java.awt.Dimension size)
        Initializes a new instance of the SizeProperty class with the provided Dimension.
        Parameters:
        size - the Dimension to use.
      • SizeProperty

        public SizeProperty(java.lang.Integer width,
                            java.lang.Integer height)
        Initializes a new instance of the SizeProperty class with the specified width and height values.
        Parameters:
        width - the width to initialize the SizeProperty with.
        height - the height to initialize the SizeProperty with.
      • SizeProperty

        public SizeProperty(SizeProperty sizeToCopy)
        Initializes a new instance of the SizeProperty class by copying the values of the provided SizeProperty.
        Parameters:
        sizeToCopy - a SizeProperty whose values will be copied to the new instance.
    • Method Detail

      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Description copied from interface: CloneableObject
        Returns a clone of this instance.
        Specified by:
        clone in interface CloneableObject
        Overrides:
        clone in class java.lang.Object
        Returns:
        a clone of this instance.
        Throws:
        java.lang.CloneNotSupportedException - if the instance cannot be cloned.
      • getProperties

        public java.util.Map<java.lang.String,java.lang.Object> getProperties()
        Specified by:
        getProperties in interface com.hp.lft.sdk.internal.GroupedProperty
      • getHeight

        public java.lang.Integer getHeight()
        Returns the horizontal component of the test object size.
        Returns:
        the horizontal component of the test object size.
      • setHeight

        public SizeProperty setHeight(java.lang.Integer height)
        Sets the horizontal component of the test object size.
        Parameters:
        height - the horizontal component of the test object size.
        Returns:
        the SizeProperty instance with the updated state (builder pattern).
      • getWidth

        public java.lang.Integer getWidth()
        Returns the vertical component of the test object size.
        Returns:
        the vertical component of the test object size.
      • setWidth

        public SizeProperty setWidth(java.lang.Integer width)
        Returns the vertical component of the test object size.
        Parameters:
        width - the vertical component of the test object size.
        Returns:
        the SizeProperty instance with the updated state (builder pattern).
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object