Package org.jfree.xml.parser.coretypes
Class ColorReadHandler
java.lang.Object
org.jfree.xml.parser.AbstractXmlReadHandler
org.jfree.xml.parser.coretypes.ColorReadHandler
- All Implemented Interfaces:
XmlReadHandler
A SAX handler for reading
Color objects from an XML element.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the color under construction.protected voidstartParsing(Attributes attrs) Methods inherited from class org.jfree.xml.parser.AbstractXmlReadHandler
characters, doneParsing, endElement, getHandlerForChild, getRootHandler, getTagName, init, startElement
-
Constructor Details
-
ColorReadHandler
public ColorReadHandler()Creates a new handler.
-
-
Method Details
-
startParsing
Called at the start of parsing aColorelement, this method reads the attributes and constructs theColor.- Overrides:
startParsingin classAbstractXmlReadHandler- Parameters:
attrs- the attributes.- Throws:
SAXException- to indicate a parsing error.
-
getObject
Returns the color under construction.- Returns:
- the color.
-