Package org.jfree.xml.factory.objects
Class BasicStrokeObjectDescription
java.lang.Object
org.jfree.xml.factory.objects.AbstractObjectDescription
org.jfree.xml.factory.objects.BasicStrokeObjectDescription
- All Implemented Interfaces:
Serializable
,Cloneable
,ObjectDescription
An object-description for a
BasicStroke
object.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a newBasicStroke
object based on this description.private float
getFloatParameter
(String param) Returns a parameter as a float.void
Sets the parameters for this description 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
-
BasicStrokeObjectDescription
public BasicStrokeObjectDescription()Creates a new object description.
-
-
Method Details
-
getFloatParameter
Returns a parameter as a float.- Parameters:
param
- the parameter name.- Returns:
- The float value.
-
createObject
Creates a newBasicStroke
object based on this description.- Returns:
- The
BasicStroke
object.
-
setParameterFromObject
Sets the parameters for this description to match the supplied object.- Parameters:
o
- the object (instance ofBasicStroke
required).- Throws:
ObjectFactoryException
- if the supplied object is not an instance ofBasicStroke
.
-