Class RenderingHintsReadHandler

  • All Implemented Interfaces:
    XmlReadHandler

    public class RenderingHintsReadHandler
    extends AbstractXmlReadHandler
    A read handler that can parse the XML element for a RenderingHints collection.
    • Field Detail

      • handlers

        private java.util.ArrayList handlers
        The subhandlers.
      • renderingHints

        private java.awt.RenderingHints renderingHints
        The rendering hints under construction.
    • Constructor Detail

      • RenderingHintsReadHandler

        public RenderingHintsReadHandler()
        Creates a new read handler.
    • Method Detail

      • startParsing

        protected void startParsing​(org.xml.sax.Attributes attrs)
                             throws org.xml.sax.SAXException
        Starts parsing.
        Overrides:
        startParsing in class AbstractXmlReadHandler
        Parameters:
        attrs - the attributes.
        Throws:
        org.xml.sax.SAXException - never.
      • getHandlerForChild

        protected XmlReadHandler getHandlerForChild​(java.lang.String tagName,
                                                    org.xml.sax.Attributes atts)
                                             throws XmlReaderException,
                                                    org.xml.sax.SAXException
        Returns the handler for a child element.
        Overrides:
        getHandlerForChild in class AbstractXmlReadHandler
        Parameters:
        tagName - the tag name.
        atts - the attributes.
        Returns:
        the handler.
        Throws:
        org.xml.sax.SAXException - if there is a parsing error.
        XmlReaderException - if there is a reader error.
      • getObject

        public java.lang.Object getObject()
                                   throws XmlReaderException
        Returns the object for this element.
        Returns:
        the object.
        Throws:
        XmlReaderException - if there is a parsing error.