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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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
-
Field Details
-
color
The color under construction.
-
-
Constructor Details
-
ColorReadHandler
public ColorReadHandler()Creates a new handler.
-
-
Method Details
-
startParsing
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
Returns the color under construction.- Returns:
- the color.
-