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
public class ColorReadHandler extends AbstractXmlReadHandler
A SAX handler for readingColor
objects from an XML element.
-
-
Constructor Summary
Constructors Constructor Description ColorReadHandler()
Creates a new handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getObject()
Returns the color under construction.protected void
startParsing(Attributes attrs)
-
Methods inherited from class org.jfree.xml.parser.AbstractXmlReadHandler
characters, doneParsing, endElement, getHandlerForChild, getRootHandler, getTagName, init, startElement
-
-
-
-
Method Detail
-
startParsing
protected void startParsing(Attributes attrs) throws SAXException
Called at the start of parsing aColor
element, this method reads the attributes and constructs theColor
.- Overrides:
startParsing
in classAbstractXmlReadHandler
- Parameters:
attrs
- the attributes.- Throws:
SAXException
- to indicate a parsing error.
-
getObject
public Object getObject()
Returns the color under construction.- Returns:
- the color.
-
-