org.jfree.xml.parser.coretypes

Class GradientPaintReadHandler

public class GradientPaintReadHandler extends AbstractXmlReadHandler

A SAX handler for reading a GradientPaint from an XML element.
Constructor Summary
GradientPaintReadHandler()
Creates a new handler.
Method Summary
protected voiddoneParsing()
At the end of parsing the element, the gradient paint is constructed.
protected XmlReadHandlergetHandlerForChild(String tagName, Attributes atts)
Returns the handler for a child element.
ObjectgetObject()
Returns the gradient paint under construction.

Constructor Detail

GradientPaintReadHandler

public GradientPaintReadHandler()
Creates a new handler.

Method Detail

doneParsing

protected void doneParsing()
At the end of parsing the element, the gradient paint is constructed.

Throws: XmlReaderException if there is a parsing error.

getHandlerForChild

protected XmlReadHandler getHandlerForChild(String tagName, Attributes atts)
Returns the handler for a child element.

Parameters: tagName the tag name. atts the attributes.

Returns: the handler.

Throws: SAXException to indicate a parsing error. XmlReaderException if there is a reader error.

getObject

public Object getObject()
Returns the gradient paint under construction.

Returns: the gradient paint.