/** * Returns a new instance of this bridge. */ public Bridge getInstance() { return new SVGGElementBridge(); }
/** * Disposes this BridgeUpdateHandler and releases all resources. */ public void dispose() { selectedChild = null; super.dispose(); }
/** * Invoked when an MutationEvent of type 'DOMNodeInserted' is fired. */ public void handleDOMNodeInsertedEvent(MutationEvent evt) { if (evt.getTarget() instanceof Element) { handleElementAdded((CompositeGraphicsNode)node, e, (Element)evt.getTarget()); } else { super.handleDOMNodeInsertedEvent(evt); } }
/** * Creates a <code>GraphicsNode</code> according to the specified parameters. * * @param ctx the bridge context to use * @param e the element that describes the graphics node to build * @return a graphics node that represents the specified element */ public GraphicsNode createGraphicsNode(BridgeContext ctx, Element e) { CompositeGraphicsNode gn = (CompositeGraphicsNode)super.createGraphicsNode(ctx, e); if (gn == null) return null; associateSVGContext(ctx, e, gn); // 'color-rendering' RenderingHints hints = null; hints = CSSUtilities.convertColorRendering(e, hints); if (hints != null) gn.setRenderingHints(hints); // 'enable-background' Rectangle2D r = CSSUtilities.convertEnableBackground(e); if (r != null) gn.setBackgroundEnable(r); return gn; }
(CompositeGraphicsNode) super.createGraphicsNode(ctx, e); if (group == null) { return null;
GraphicsNode node) { super.buildGraphicsNode(ctx, e, node);
throw new BridgeException(ctx, ex); super.handleAnimatedAttributeChanged(alav);
/** * Invoked when an MutationEvent of type 'DOMNodeInserted' is fired. */ public void handleDOMNodeInsertedEvent(MutationEvent evt) { if (evt.getTarget() instanceof Element) { handleElementAdded((CompositeGraphicsNode)node, e, (Element)evt.getTarget()); } else { super.handleDOMNodeInsertedEvent(evt); } }
/** * Creates a <code>GraphicsNode</code> according to the specified parameters. * * @param ctx the bridge context to use * @param e the element that describes the graphics node to build * @return a graphics node that represents the specified element */ public GraphicsNode createGraphicsNode(BridgeContext ctx, Element e) { CompositeGraphicsNode gn = (CompositeGraphicsNode)super.createGraphicsNode(ctx, e); if (gn == null) return null; associateSVGContext(ctx, e, gn); // 'color-rendering' RenderingHints hints = null; hints = CSSUtilities.convertColorRendering(e, hints); if (hints != null) gn.setRenderingHints(hints); // 'enable-background' Rectangle2D r = CSSUtilities.convertEnableBackground(e); if (r != null) gn.setBackgroundEnable(r); return gn; }
(CompositeGraphicsNode) super.createGraphicsNode(ctx, e); if (group == null) { return null;
GraphicsNode node) { super.buildGraphicsNode(ctx, e, node);
throw new BridgeException(ctx, ex); super.handleAnimatedAttributeChanged(alav);
/** * Disposes this BridgeUpdateHandler and releases all resources. */ public void dispose() { selectedChild = null; super.dispose(); }
/** * Returns a new instance of this bridge. */ public Bridge getInstance() { return new SVGGElementBridge(); }
/** * Invoked when an MutationEvent of type 'DOMNodeInserted' is fired. */ public void handleDOMNodeInsertedEvent(MutationEvent evt) { if (evt.getTarget() instanceof Element) { handleElementAdded((CompositeGraphicsNode)node, e, (Element)evt.getTarget()); } else { super.handleDOMNodeInsertedEvent(evt); } }
/** * Creates a <code>GraphicsNode</code> according to the specified parameters. * * @param ctx the bridge context to use * @param e the element that describes the graphics node to build * @return a graphics node that represents the specified element */ public GraphicsNode createGraphicsNode(BridgeContext ctx, Element e) { CompositeGraphicsNode gn = (CompositeGraphicsNode)super.createGraphicsNode(ctx, e); if (gn == null) return null; associateSVGContext(ctx, e, gn); // 'color-rendering' RenderingHints hints = null; hints = CSSUtilities.convertColorRendering(e, hints); if (hints != null) gn.setRenderingHints(hints); // 'enable-background' Rectangle2D r = CSSUtilities.convertEnableBackground(e); if (r != null) gn.setBackgroundEnable(r); return gn; }
(CompositeGraphicsNode) super.createGraphicsNode(ctx, e); if (group == null) { return null;
GraphicsNode node) { super.buildGraphicsNode(ctx, e, node);
throw new BridgeException(ctx, ex); super.handleAnimatedAttributeChanged(alav);
/** * Disposes this BridgeUpdateHandler and releases all resources. */ public void dispose() { selectedChild = null; super.dispose(); }