/** * 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) { // 'requiredFeatures', 'requiredExtensions' and 'systemLanguage' if (!SVGUtilities.matchUserAgent(e, ctx.getUserAgent())) { return null; } GraphicsNode node = instantiateGraphicsNode(); // 'transform' setTransform(node, e, ctx); // 'visibility' node.setVisible(CSSUtilities.convertVisibility(e)); associateSVGContext(ctx, e, node); return node; }
/** * 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) { // 'requiredFeatures', 'requiredExtensions' and 'systemLanguage' if (!SVGUtilities.matchUserAgent(e, ctx.getUserAgent())) { return null; } GraphicsNode node = instantiateGraphicsNode(); // 'transform' setTransform(node, e, ctx); // 'visibility' node.setVisible(CSSUtilities.convertVisibility(e)); associateSVGContext(ctx, e, node); return node; }
/** * 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) { // 'requiredFeatures', 'requiredExtensions' and 'systemLanguage' if (!SVGUtilities.matchUserAgent(e, ctx.getUserAgent())) { return null; } GraphicsNode node = instantiateGraphicsNode(); // 'transform' setTransform(node, e, ctx); // 'visibility' node.setVisible(CSSUtilities.convertVisibility(e)); associateSVGContext(ctx, e, node); return node; }