Class DefaultStyleHandler

    • Field Detail

      • ignoreAttributes

        static java.util.Map ignoreAttributes
        Static initializer for which attributes should be ignored on some elements. Map-key is a string like 'SVG_RECT_TAG' , map-entry is a set of strings, which denote font-attributes to ignore. The set is shared by all map-entries.
    • 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.