return;
}
GraphicsNodeBridge gnBridge = (GraphicsNodeBridge)bridge;
try {
// create the associated graphics node
GraphicsNode gn = gnBridge.createGraphicsNode(ctx, e);
if (gn != null) {
// attach the graphics node to the GVT tree now !
parentNode.getChildren().add(gn);
// check if the element has children to build
if (gnBridge.isComposite()) {
buildComposite(ctx, e, (CompositeGraphicsNode)gn);
} else {
// if not then still handle the GenericBridges
handleGenericBridges(ctx, e);
}
gnBridge.buildGraphicsNode(ctx, e, gn);
} else {
handleGenericBridges(ctx, e);
}
} catch (BridgeException ex) {
// some bridge may decide that the node in error can be
// displayed (e.g. polyline, path...)
// In this case, the exception contains the GraphicsNode
GraphicsNode errNode = ex.getGraphicsNode();
if (errNode != null) {
parentNode.getChildren().add(errNode);
gnBridge.buildGraphicsNode(ctx, e, errNode);
ex.setGraphicsNode(null);
}