/** * 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; }
/** * 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; }
/** * 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; }