Class DefaultStyleHandler

    • Constructor Detail

      • DefaultStyleHandler

        public DefaultStyleHandler()
    • Method Detail

      • setStyle

        public void setStyle​(org.w3c.dom.Element element,
                             java.util.Map styleMap,
                             SVGGeneratorContext generatorContext)
        Sets the style described by styleMap on the given element. That is sets the xml attributes with their styled value.
        Specified by:
        setStyle in interface StyleHandler
        Parameters:
        element - the SVG Element to be styled.
        styleMap - the Map containing pairs of style property names, style values.
      • appliesTo

        protected boolean appliesTo​(java.lang.String styleName,
                                    java.lang.String tagName)
        Controls whether or not a given attribute applies to a particular element.