Package org.jfree.xml.parser.coretypes
Class Rectangle2DReadHandler
java.lang.Object
org.jfree.xml.parser.AbstractXmlReadHandler
org.jfree.xml.parser.coretypes.Rectangle2DReadHandler
- All Implemented Interfaces:
XmlReadHandler
A handler for reading a
Rectangle2D
object.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Rectangle2D
createRect
(String type) Creates a rectangle.Returns the object under construction.protected void
startParsing
(Attributes attrs) Begins parsing.Methods inherited from class org.jfree.xml.parser.AbstractXmlReadHandler
characters, doneParsing, endElement, getHandlerForChild, getRootHandler, getTagName, init, startElement
-
Field Details
-
rectangle
The rectangle being constructed.
-
-
Constructor Details
-
Rectangle2DReadHandler
public Rectangle2DReadHandler()Default constructor.
-
-
Method Details
-
startParsing
Begins parsing.- Overrides:
startParsing
in classAbstractXmlReadHandler
- Parameters:
attrs
- the attributes.- Throws:
SAXException
- if there is a parsing error.
-
createRect
Creates a rectangle.- Parameters:
type
- the type ('float' or 'double').- Returns:
- The rectangle.
-
getObject
Returns the object under construction.- Returns:
- The object.
-