| java.lang.Object org.apache.batik.svggen.DefaultStyleHandler
DefaultStyleHandler | public class DefaultStyleHandler implements StyleHandler,SVGConstants(Code) | | The DefaultStyleHandler class provides the default
way to style an SVG Element .
author: Christophe Jolif version: $Id: DefaultStyleHandler.java 479559 2006-11-27 09:46:16Z dvholten $ |
Field Summary | |
static Map | ignoreAttributes Static initializer for which attributes should be ignored on
some elements. |
Method Summary | |
protected boolean | appliesTo(String styleName, String tagName) Controls whether or not a given attribute applies to a particular
element. | public void | setStyle(Element element, Map styleMap, SVGGeneratorContext generatorContext) Sets the style described by styleMap on the given
element . |
ignoreAttributes | static Map ignoreAttributes(Code) | | 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.
|
appliesTo | protected boolean appliesTo(String styleName, String tagName)(Code) | | Controls whether or not a given attribute applies to a particular
element.
|
setStyle | public void setStyle(Element element, Map styleMap, SVGGeneratorContext generatorContext)(Code) | | Sets the style described by styleMap on the given
element . That is sets the xml attributes with their
styled value.
Parameters: element - the SVG Element to be styled. Parameters: styleMap - the Map containing pairs of styleproperty names, style values. |
|
|