Class ColorReadHandler

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

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

    • color

      private Color color
      The color under construction.
  • Constructor Details

    • ColorReadHandler

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

    • startParsing

      protected void startParsing(Attributes attrs) throws 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:
      SAXException - to indicate a parsing error.
    • getObject

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