org.jfree.xml.factory.objects

Class BasicStrokeObjectDescription

public class BasicStrokeObjectDescription extends AbstractObjectDescription

An object-description for a BasicStroke object.

Author: Thomas Morgner

Constructor Summary
BasicStrokeObjectDescription()
Creates a new object description.
Method Summary
ObjectcreateObject()
Creates a new BasicStroke object based on this description.
voidsetParameterFromObject(Object o)
Sets the parameters for this description to match the supplied object.

Constructor Detail

BasicStrokeObjectDescription

public BasicStrokeObjectDescription()
Creates a new object description.

Method Detail

createObject

public Object createObject()
Creates a new BasicStroke object based on this description.

Returns: The BasicStroke object.

setParameterFromObject

public void setParameterFromObject(Object o)
Sets the parameters for this description to match the supplied object.

Parameters: o the object (instance of BasicStroke required).

Throws: ObjectFactoryException if the supplied object is not an instance of BasicStroke.