Package org.jfree.xml.factory.objects
Class Point2DObjectDescription
java.lang.Object
org.jfree.xml.factory.objects.AbstractObjectDescription
org.jfree.xml.factory.objects.Point2DObjectDescription
- All Implemented Interfaces:
Serializable
,Cloneable
,ObjectDescription
An object-description for a
Point2D
object.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates an object based on this description.private float
getFloatParameter
(String param) Returns a parameter value as a float.void
Sets the parameters of this description object to match the supplied object.Methods inherited from class org.jfree.xml.factory.objects.AbstractObjectDescription
configure, convertPrimitiveClass, equals, getConfig, getDefinedParameterNames, getInstance, getObjectClass, getParameter, getParameterDefinition, getParameterNames, getUnconfiguredInstance, hashCode, setParameter, setParameterDefinition
-
Constructor Details
-
Point2DObjectDescription
public Point2DObjectDescription()Creates a new object description.
-
-
Method Details
-
createObject
Creates an object based on this description.- Returns:
- The object.
-
getFloatParameter
Returns a parameter value as a float.- Parameters:
param
- the parameter name.- Returns:
- The float value.
-
setParameterFromObject
Sets the parameters of this description object to match the supplied object.- Parameters:
o
- the object (should be an instance ofPoint2D
).- Throws:
ObjectFactoryException
- if the object is not an instance ofPoint2D
.
-