org.apache.batik.svggen
public class DOMGroupManager extends Object implements SVGSyntax, ErrorConstants
| Field Summary | |
|---|---|
| protected Element | currentGroup
Current group node |
| protected DOMTreeManager | domTreeManager
DOMTreeManager that this group manager cooperates with |
| static short | DRAW |
| static short | FILL |
| protected GraphicContext | gc
Reference to the GraphicContext this manager will use to
reflect style attributes in the tree nodes. |
| protected SVGGraphicContext | groupGC
Current group's SVG GraphicContext state |
| Constructor Summary | |
|---|---|
| DOMGroupManager(GraphicContext gc, DOMTreeManager domTreeManager)
Constructor | |
| Method Summary | |
|---|---|
| void | addElement(Element element)
Adds a node to the current group, if possible |
| void | addElement(Element element, short method)
Adds a node to the current group, if possible |
| protected int | countOverrides(SVGGraphicContext deltaGC)
Analyses the Map to define how many attributes constitute
overrides. |
| protected void | setTransform(Element element, TransformStackElement[] transformStack)
Processes the transform attribute value corresponding to a
given transform stack |
| protected void | trimContextForElement(SVGGraphicContext svgGC, Element element)
Removes properties that do not apply for a specific element |
Parameters: gc graphic context whose state will be reflected in the element's style attributes. domTreeManager DOMTreeManager instance this group manager cooperates with.
Parameters: element child Element to add to the group
Parameters: element child Element to add to the group