Class Line2DObjectDescription

    • Constructor Detail

      • Line2DObjectDescription

        public Line2DObjectDescription()
        Creates a new object description.
    • Method Detail

      • createObject

        public java.lang.Object createObject()
        Creates an object based on this description.
        Returns:
        The object.
      • getFloatParameter

        private float getFloatParameter​(java.lang.String param)
        Returns a parameter value as a float.
        Parameters:
        param - the parameter name.
        Returns:
        The float value.
      • setParameterFromObject

        public void setParameterFromObject​(java.lang.Object o)
                                    throws ObjectFactoryException
        Sets the parameters of this description object to match the supplied object.
        Parameters:
        o - the object (should be an instance of Line2D).
        Throws:
        ObjectFactoryException - if the object is not an instance of Line2D.