|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.svggen.DOMTreeManager
public class DOMTreeManager
This class is used by the SVGGraphics2D SVG Generator to manage
addition of new Nodes to the SVG DOM Tree. This class handles
a set of DOMGroupManager objects that can all append to the
top level group managed by this class. This allows multiple
SVGGraphics2D instances, created from the same SVGGraphics2D
through the various create methods, to append to the same
SVG document and keep the rendering order correct.
The root node managed by this DOMTreeManager contains two children:
a top level group node and a top level defs node. The top level
defs node contains the definition of common SVG entities such as
the various AlphaComposite rules. Note that other defs can also be
created under the top level group, for example to represent
gradient or pattern paints.
[svg]
|
+-- [defs] Contain generic definitions
+-- [g] Top level group
|
+-- [defs] Contains definitions specific to rendering
+-- [g] Group 1
+-- ...
+-- [g] Group n
Field Summary | |
---|---|
protected SVGBufferedImageOp |
filterConverter
Converters used bVy this object to translate graphic context attributes |
protected SVGGeneratorContext |
generatorContext
The context that stores the domFactory, the imageHandler and the extensionHandler. |
protected java.util.List |
genericDefSet
Set of definitions that are to be placed at the top of the document tree |
protected java.util.List |
groupManagers
Set of group managers that build groups for this manager. |
protected java.util.List |
otherDefs
Set of definitions which can be used by custom extensions |
protected org.w3c.dom.Element |
topLevelGroup
Top level group |
Constructor Summary | |
---|---|
DOMTreeManager(GraphicContext gc,
SVGGeneratorContext generatorContext,
int maxGCOverrides)
Constructor |
Method Summary | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
void |
addGroupManager(DOMGroupManager groupManager)
|
|||||||||||||||||
void |
addOtherDef(org.w3c.dom.Element definition)
Lets custom implementations for various extensions add elements to the |
|||||||||||||||||
void |
appendGroup(org.w3c.dom.Element group,
DOMGroupManager groupManager)
When a group is appended to the tree by this call, all the other group managers are requested to start new groups, in order to preserve the Z-order. |
|||||||||||||||||
void |
applyDefaultRenderingStyle(org.w3c.dom.Element element)
|
|||||||||||||||||
java.util.List |
getDefinitionSet()
Invoking this method will return a set of definition element that contain all the definitions referenced by the attributes generated by the various converters. |
|||||||||||||||||
ExtensionHandler |
getExtensionHandler()
|
|||||||||||||||||
SVGBufferedImageOp |
getFilterConverter()
|
|||||||||||||||||
org.w3c.dom.Element |
getGenericDefinitions()
|
|||||||||||||||||
SVGGraphicContextConverter |
getGraphicContextConverter()
|
|||||||||||||||||
org.w3c.dom.Element |
getRoot()
Returns the root element with the generic definitions and the topLevelGroup. |
|||||||||||||||||
org.w3c.dom.Element |
getRoot(org.w3c.dom.Element svgElement)
Returns the root element with the generic definitions and the topLevelGroup. |
|||||||||||||||||
org.w3c.dom.Element |
getTopLevelGroup()
Invoking this method will return a reference to the topLevelGroup Element managed by this object. |
|||||||||||||||||
org.w3c.dom.Element |
getTopLevelGroup(boolean includeDefinitionSet)
Invoking this method will return a reference to the topLevelGroup Element managed by this object. |
|||||||||||||||||
protected void |
recycleTopLevelGroup()
Reset the state of this object to handler a new topLevelGroup |
|||||||||||||||||
protected void |
|