Class GVTBuilder

java.lang.Object
org.apache.batik.bridge.GVTBuilder
All Implemented Interfaces:
XMLConstants, CSSConstants, SVGConstants
Direct Known Subclasses:
DynamicGVTBuilder

public class GVTBuilder extends Object implements SVGConstants
This class is responsible for creating a GVT tree using an SVG DOM tree.
Version:
$Id: GVTBuilder.java 1733416 2016-03-03 07:07:13Z gadams $
  • Constructor Details

    • GVTBuilder

      public GVTBuilder()
      Constructs a new builder.
  • Method Details

    • 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