Package org.jfree.xml.parser.coretypes
Class GradientPaintReadHandler
java.lang.Object
org.jfree.xml.parser.AbstractXmlReadHandler
org.jfree.xml.parser.coretypes.GradientPaintReadHandler
- All Implemented Interfaces:
XmlReadHandler
A SAX handler for reading a
GradientPaint
from an XML element.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate XmlReadHandler
The handler for color 1.private XmlReadHandler
The handler for color 2.private GradientPaint
The gradient paint under construction.private XmlReadHandler
The handler for point 1.private XmlReadHandler
The handler for point 2. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
At the end of parsing the element, the gradient paint is constructed.protected XmlReadHandler
getHandlerForChild
(String tagName, Attributes atts) Returns the handler for a child element.Returns the gradient paint under construction.Methods inherited from class org.jfree.xml.parser.AbstractXmlReadHandler
characters, endElement, getRootHandler, getTagName, init, startElement, startParsing
-
Field Details
-
gradient
The gradient paint under construction. -
color1Handler
The handler for color 1. -
color2Handler
The handler for color 2. -
point1Handler
The handler for point 1. -
point2Handler
The handler for point 2.
-
-
Constructor Details
-
GradientPaintReadHandler
public GradientPaintReadHandler()Creates a new handler.
-
-
Method Details
-
getObject
Returns the gradient paint under construction.- Returns:
- the gradient paint.
-
getHandlerForChild
protected XmlReadHandler getHandlerForChild(String tagName, Attributes atts) throws SAXException, XmlReaderException Returns the handler for a child element.- Overrides:
getHandlerForChild
in classAbstractXmlReadHandler
- 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.
-
doneParsing
At the end of parsing the element, the gradient paint is constructed.- Overrides:
doneParsing
in classAbstractXmlReadHandler
- Throws:
XmlReaderException
- if there is a parsing error.
-