Class Line2DObjectDescription

java.lang.Object
org.jfree.xml.factory.objects.AbstractObjectDescription
org.jfree.xml.factory.objects.Line2DObjectDescription
All Implemented Interfaces:
Serializable, Cloneable, ObjectDescription

public class Line2DObjectDescription extends AbstractObjectDescription
An object-description for a Line2D object.
See Also:
  • Constructor Details

    • Line2DObjectDescription

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

    • createObject

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

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

      public void setParameterFromObject(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.