org.apache.batik.svggen

Class DefaultStyleHandler

public class DefaultStyleHandler extends Object implements StyleHandler, SVGConstants

The DefaultStyleHandler class provides the default way to style an SVG Element.
Method Summary
protected booleanappliesTo(String styleName, String tagName)
Controls whether or not a given attribute applies to a particular element.
voidsetStyle(Element element, Map styleMap, SVGGeneratorContext generatorContext)
Sets the style described by styleMap on the given element.

Method Detail

appliesTo

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

setStyle

public void setStyle(Element element, Map styleMap, SVGGeneratorContext generatorContext)
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. styleMap the Map containing pairs of style property names, style values.

Copyright B) 2007 Apache Software Foundation. All Rights Reserved.