org.jfree.xml.parser.coretypes

Class ColorReadHandler

Implemented Interfaces:
XmlReadHandler

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

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

Methods inherited from class org.jfree.xml.parser.AbstractXmlReadHandler

characters, doneParsing, endElement, getHandlerForChild, getRootHandler, getTagName, init, startElement, startParsing

Constructor Details

ColorReadHandler

public ColorReadHandler()
Creates a new handler.

Method Details

getObject

public Object getObject()
Returns the color under construction.
Specified by:
getObject in interface XmlReadHandler
Returns:
the color.

startParsing

protected void startParsing(Attributes attrs)
            throws SAXException
Called at the start of parsing a Color element, this method reads the attributes and constructs the Color.
Overrides:
startParsing in interface AbstractXmlReadHandler
Parameters:
attrs - the attributes.