org.jfree.xml.parser.coretypes

Class Point2DReadHandler

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
ObjectgetObject()
Returns the point under construction.
Point2DgetPoint2D()
Returns the point under construction.
protected voidstartParsing(Attributes attrs)
At the start of parsing, the attributes are read and used to construct the point.

Constructor Detail

Point2DReadHandler

public Point2DReadHandler()
Creates a new handler.

Method Detail

getObject

public Object getObject()
Returns the point under construction.

Returns: the point.

getPoint2D

public Point2D getPoint2D()
Returns the point under construction.

Returns: the point.

startParsing

protected void startParsing(Attributes attrs)
At the start of parsing, the attributes are read and used to construct the point.

Parameters: attrs the attributes.

Throws: SAXException if there is a parsing error.