Class Rectangle2DReadHandler

    • Field Detail

      • rectangle

        private java.awt.geom.Rectangle2D rectangle
        The rectangle being constructed.
    • Constructor Detail

      • Rectangle2DReadHandler

        public Rectangle2DReadHandler()
        Default constructor.
    • Method Detail

      • startParsing

        protected void startParsing​(org.xml.sax.Attributes attrs)
                             throws org.xml.sax.SAXException
        Begins parsing.
        Overrides:
        startParsing in class AbstractXmlReadHandler
        Parameters:
        attrs - the attributes.
        Throws:
        org.xml.sax.SAXException - if there is a parsing error.
      • createRect

        private java.awt.geom.Rectangle2D createRect​(java.lang.String type)
        Creates a rectangle.
        Parameters:
        type - the type ('float' or 'double').
        Returns:
        The rectangle.
      • getObject

        public java.lang.Object getObject()
        Returns the object under construction.
        Returns:
        The object.