/** * This method is invoked during the build phase if the document * is dynamic. The responsibility of this method is to ensure that * any dynamic modifications of the element this bridge is * dedicated to, happen on its associated GVT product. */ protected void initializeDynamicSupport(BridgeContext ctx, Element e, GraphicsNode node) { if (ctx.isInteractive()) { // Bind the nodes for interactive and dynamic. ctx.bind(e, node); } }
/** * This method is invoked during the build phase if the document * is dynamic. The responsibility of this method is to ensure that * any dynamic modifications of the element this bridge is * dedicated to, happen on its associated GVT product. */ protected void initializeDynamicSupport(BridgeContext ctx, Element e, GraphicsNode node) { if (ctx.isInteractive()) { // Bind the nodes for interactive and dynamic. ctx.bind(e, node); } }
/** * This method is invoked during the build phase if the document * is dynamic. The responsibility of this method is to ensure that * any dynamic modifications of the element this bridge is * dedicated to, happen on its associated GVT product. */ protected void initializeDynamicSupport(BridgeContext ctx, Element e, GraphicsNode node) { if (ctx.isInteractive()) { // Bind the nodes for interactive and dynamic. ctx.bind(e, 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. * * @param ctx the bridge context to use * @param doc the document node that describes the graphics node to build * @param node the graphics node to build */ public void buildGraphicsNode(BridgeContext ctx, Document doc, RootGraphicsNode node) { if (ctx.isDynamic()) { ctx.bind(doc, 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. * * @param ctx the bridge context to use * @param doc the document node that describes the graphics node to build * @param node the graphics node to build */ public void buildGraphicsNode(BridgeContext ctx, Document doc, RootGraphicsNode node) { if (ctx.isDynamic()) { ctx.bind(doc, 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. * * @param ctx the bridge context to use * @param doc the document node that describes the graphics node to build * @param node the graphics node to build */ public void buildGraphicsNode(BridgeContext ctx, Document doc, RootGraphicsNode node) { if (ctx.isDynamic()) { ctx.bind(doc, node); } }
/** * This method is invoked during the build phase if the document * is dynamic. The responsability of this method is to ensure that * any dynamic modifications of the element this bridge is * dedicated to, happen on its associated GVT product. */ protected void initializeDynamicSupport(BridgeContext ctx, Element e, GraphicsNode node) { if (ctx.isInteractive()) { // HACK due to the way images are represented in GVT ImageNode imgNode = (ImageNode)node; ctx.bind(e, imgNode.getImage()); } }
/** * This method is invoked during the build phase if the document * is dynamic. The responsability of this method is to ensure that * any dynamic modifications of the element this bridge is * dedicated to, happen on its associated GVT product. */ protected void initializeDynamicSupport(BridgeContext ctx, Element e, GraphicsNode node) { if (ctx.isInteractive()) { // HACK due to the way images are represented in GVT ImageNode imgNode = (ImageNode)node; ctx.bind(e, imgNode.getImage()); } }
/** * This method is invoked during the build phase if the document * is dynamic. The responsability of this method is to ensure that * any dynamic modifications of the element this bridge is * dedicated to, happen on its associated GVT product. */ protected void initializeDynamicSupport(BridgeContext ctx, Element e, GraphicsNode node) { if (ctx.isInteractive()) { // HACK due to the way images are represented in GVT ImageNode imgNode = (ImageNode)node; ctx.bind(e, imgNode.getImage()); } }
/** * This method is invoked during the build phase if the document * is dynamic. The responsability of this method is to ensure that * any dynamic modifications of the element this bridge is * dedicated to, happen on its associated GVT product. */ protected void initializeDynamicSupport(BridgeContext ctx, Element e, GraphicsNode node) { if (!ctx.isInteractive()) return; // Bind the nodes for interactive and dynamic // HACK due to the way images are represented in GVT ctx.bind(e, node); if (ctx.isDynamic()) { // Only do this for dynamic not interactive. this.e = e; this.node = node; this.ctx = ctx; ((SVGOMElement)e).setSVGContext(this); } }
/** * This method is invoked during the build phase if the document * is dynamic. The responsability of this method is to ensure that * any dynamic modifications of the element this bridge is * dedicated to, happen on its associated GVT product. */ protected void initializeDynamicSupport(BridgeContext ctx, Element e, GraphicsNode node) { if (!ctx.isInteractive()) return; // Bind the nodes for interactive and dynamic // HACK due to the way images are represented in GVT ctx.bind(e, node); if (ctx.isDynamic()) { // Only do this for dynamic not interactive. this.e = e; this.node = node; this.ctx = ctx; ((SVGOMElement)e).setSVGContext(this); } }
/** * This method is invoked during the build phase if the document * is dynamic. The responsability of this method is to ensure that * any dynamic modifications of the element this bridge is * dedicated to, happen on its associated GVT product. */ protected void initializeDynamicSupport(BridgeContext ctx, Element e, GraphicsNode node) { if (!ctx.isInteractive()) return; // Bind the nodes for interactive and dynamic // HACK due to the way images are represented in GVT ctx.bind(e, node); if (ctx.isDynamic()) { // Only do this for dynamic not interactive. this.e = e; this.node = node; this.ctx = ctx; ((SVGOMElement)e).setSVGContext(this); } }