public class Rectangle2DReadHandler extends AbstractXmlReadHandler
Rectangle2D object.| Modifier and Type | Field and Description |
|---|---|
private java.awt.geom.Rectangle2D |
rectangle
The rectangle being constructed.
|
| Constructor and Description |
|---|
Rectangle2DReadHandler()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private java.awt.geom.Rectangle2D |
createRect(java.lang.String type)
Creates a rectangle.
|
java.lang.Object |
getObject()
Returns the object under construction.
|
protected void |
startParsing(org.xml.sax.Attributes attrs)
Begins parsing.
|
characters, doneParsing, endElement, getHandlerForChild, getRootHandler, getTagName, init, startElementprotected void startParsing(org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
startParsing in class AbstractXmlReadHandlerattrs - the attributes.org.xml.sax.SAXException - if there is a parsing error.private java.awt.geom.Rectangle2D createRect(java.lang.String type)
type - the type ('float' or 'double').public java.lang.Object getObject()