Class Point2DReadHandler

java.lang.Object
org.jfree.xml.parser.AbstractXmlReadHandler
org.jfree.xml.parser.coretypes.Point2DReadHandler
All Implemented Interfaces:
XmlReadHandler

public class Point2DReadHandler extends AbstractXmlReadHandler
A SAX handler for reading Point2D objects from an XML element.
  • Field Details

    • point

      private Point2D point
      The point under construction.
  • Constructor Details

    • Point2DReadHandler

      public Point2DReadHandler()
      Creates a new handler.
  • Method Details

    • 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 class AbstractXmlReadHandler
      Parameters:
      attrs - the attributes.
      Throws:
      SAXException - if there is a parsing error.
    • getPoint2D

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

      public Object getObject()
      Returns the point under construction.
      Returns:
      the point.