org.jfree.xml.parser.coretypes

Class Point2DReadHandler

Implemented Interfaces:
XmlReadHandler

public class Point2DReadHandler
extends AbstractXmlReadHandler

A SAX handler for reading Point2D objects from an XML element.

Constructor Summary

Point2DReadHandler()
Creates a new handler.

Method Summary

Object
getObject()
Returns the point under construction.
Point2D
getPoint2D()
Returns the point under construction.
protected void
startParsing(Attributes attrs)
At the start of parsing, the attributes are read and used to construct the point.

Methods inherited from class org.jfree.xml.parser.AbstractXmlReadHandler

characters, doneParsing, endElement, getHandlerForChild, getRootHandler, getTagName, init, startElement, startParsing

Constructor Details

Point2DReadHandler

public Point2DReadHandler()
Creates a new handler.

Method Details

getObject

public Object getObject()
Returns the point under construction.
Specified by:
getObject in interface XmlReadHandler
Returns:
the point.

getPoint2D

public Point2D getPoint2D()
Returns the point under construction.
Returns:
the point.

startParsing

protected void startParsing(Attributes attrs)
            throws SAXException
At the start of parsing, the attributes are read and used to construct the point.
Overrides:
startParsing in interface AbstractXmlReadHandler
Parameters:
attrs - the attributes.