Interface DocumentBridge

  • All Superinterfaces:
    Bridge
    All Known Implementing Classes:
    SVGDocumentBridge

    public interface DocumentBridge
    extends Bridge
    Interface for bridge classes that operate on Document nodes.
    Version:
    $Id: DocumentBridge.java 1733416 2016-03-03 07:07:13Z gadams $
    • Method Detail

      • createGraphicsNode

        RootGraphicsNode createGraphicsNode​(BridgeContext ctx,
                                            org.w3c.dom.Document doc)
        Creates a GraphicsNode according to the specified parameters. This is called before children have been added to the returned GraphicsNode (obviously since you construct and return it).
        Parameters:
        ctx - the bridge context to use
        doc - the document node that describes the graphics node to build
        Returns:
        a graphics node that represents the specified document node
      • buildGraphicsNode

        void buildGraphicsNode​(BridgeContext ctx,
                               org.w3c.dom.Document doc,
                               RootGraphicsNode node)
        Builds using the specified BridgeContext and element, the specified graphics node. This is called after all the children of the node have been constructed and added, so it is safe to do work that depends on being able to see your children nodes in this method.
        Parameters:
        ctx - the bridge context to use
        doc - the document node that describes the graphics node to build
        node - the graphics node to build