org.jfree.xml.parser.coretypes

Class ColorReadHandler

public class ColorReadHandler extends AbstractXmlReadHandler

A SAX handler for reading Color objects from an XML element.
Constructor Summary
ColorReadHandler()
Creates a new handler.
Method Summary
ObjectgetObject()
Returns the color under construction.
protected voidstartParsing(Attributes attrs)
Called at the start of parsing a Color element, this method reads the attributes and constructs the Color.

Constructor Detail

ColorReadHandler

public ColorReadHandler()
Creates a new handler.

Method Detail

getObject

public Object getObject()
Returns the color under construction.

Returns: the color.

startParsing

protected void startParsing(Attributes attrs)
Called at the start of parsing a Color element, this method reads the attributes and constructs the Color.

Parameters: attrs the attributes.

Throws: SAXException to indicate a parsing error.