Class GVTBuilder

  • All Implemented Interfaces:
    XMLConstants, CSSConstants, SVGConstants
    Direct Known Subclasses:
    DynamicGVTBuilder

    public class GVTBuilder
    extends java.lang.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 Detail

      • GVTBuilder

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

      • build

        public GraphicsNode build​(BridgeContext ctx,
                                  org.w3c.dom.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,
                                  org.w3c.dom.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,
                                      org.w3c.dom.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,
                                         org.w3c.dom.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,
                                            org.w3c.dom.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