* @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) {
ShapeNode shapeNode = (ShapeNode)super.createGraphicsNode(ctx, e);
if (shapeNode == null) {
return null;
}
// delegates to subclasses the shape construction
buildShape(ctx, e, shapeNode);
// 'shape-rendering' and 'color-rendering'
RenderingHints hints = null;
hints = CSSUtilities.convertColorRendering(e, hints);
hints = CSSUtilities.convertShapeRendering(e, hints);
if (hints != null)
shapeNode.setRenderingHints(hints);
return shapeNode;
}