Class GradientPaintReadHandler

    • Field Detail

      • gradient

        private java.awt.GradientPaint gradient
        The gradient paint under construction.
      • color1Handler

        private XmlReadHandler color1Handler
        The handler for color 1.
      • color2Handler

        private XmlReadHandler color2Handler
        The handler for color 2.
      • point1Handler

        private XmlReadHandler point1Handler
        The handler for point 1.
      • point2Handler

        private XmlReadHandler point2Handler
        The handler for point 2.
    • Constructor Detail

      • GradientPaintReadHandler

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

      • getObject

        public java.lang.Object getObject()
        Returns the gradient paint under construction.
        Returns:
        the gradient paint.
      • getHandlerForChild

        protected XmlReadHandler getHandlerForChild​(java.lang.String tagName,
                                                    org.xml.sax.Attributes atts)
                                             throws org.xml.sax.SAXException,
                                                    XmlReaderException
        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 - to indicate a parsing error.
        XmlReaderException - if there is a reader error.