org.apache.batik.bridge

Class GVTBuilder

public class GVTBuilder extends Object implements SVGConstants

This class is responsible for creating a GVT tree using an SVG DOM tree.
Constructor Summary
GVTBuilder()
Constructs a new builder.
Method Summary
GraphicsNodebuild(BridgeContext ctx, Document document)
Builds using the specified bridge context the specified SVG document.
GraphicsNodebuild(BridgeContext ctx, Element e)
Builds using the specified bridge context the specified Element.
protected voidbuildComposite(BridgeContext ctx, Element e, CompositeGraphicsNode parentNode)
Builds a composite Element.
protected voidbuildGraphicsNode(BridgeContext ctx, Element e, CompositeGraphicsNode parentNode)
Builds a 'leaf' Element.
protected voidhandleGenericBridges(BridgeContext ctx, Element e)
Handles any GenericBridge elements which are children of the specified element.

Constructor Detail

GVTBuilder

public GVTBuilder()
Constructs a new builder.

Method Detail

build

public GraphicsNode build(BridgeContext ctx, Document document)
Builds using the specified bridge context the specified SVG document.

Parameters: ctx the bridge context document the SVG document to build

Throws: BridgeException if an error occured while constructing the GVT tree

build

public GraphicsNode build(BridgeContext ctx, Element e)
Builds using the specified bridge context the specified Element.

Parameters: ctx the bridge context e the element to build

Throws: BridgeException if an error occured while constructing the GVT tree

buildComposite

protected void buildComposite(BridgeContext ctx, Element e, CompositeGraphicsNode parentNode)
Builds a composite Element.

Parameters: ctx the bridge context e the element to build parentNode the composite graphics node, parent of the graphics node to build

Throws: BridgeException if an error occured while constructing the GVT tree

buildGraphicsNode

protected void buildGraphicsNode(BridgeContext ctx, Element e, CompositeGraphicsNode parentNode)
Builds a 'leaf' Element.

Parameters: ctx the bridge context e the element to build parentNode the composite graphics node, parent of the graphics node to build

Throws: BridgeException if an error occured while constructing the GVT tree

handleGenericBridges

protected void handleGenericBridges(BridgeContext ctx, Element e)
Handles any GenericBridge elements which are children of the specified element.

Parameters: ctx the bridge context e the element whose child elements should be handled

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