Class ColorReadHandler

    • Field Detail

      • color

        private java.awt.Color color
        The color under construction.
    • Constructor Detail

      • ColorReadHandler

        public ColorReadHandler()
        Creates a new handler.
    • Method Detail

      • startParsing

        protected void startParsing​(org.xml.sax.Attributes attrs)
                             throws org.xml.sax.SAXException
        Called at the start of parsing a Color element, this method reads the attributes and constructs the Color.
        Overrides:
        startParsing in class AbstractXmlReadHandler
        Parameters:
        attrs - the attributes.
        Throws:
        org.xml.sax.SAXException - to indicate a parsing error.
      • getObject

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