// first child holds the flow region nodes
CompositeGraphicsNode cgn2 = new CompositeGraphicsNode();
cgn.add(cgn2);
// second child is the text node
FlowTextNode tn = (FlowTextNode)instantiateGraphicsNode();
tn.setLocation(getLocation(ctx, e));
// specify the text painter to use
if (ctx.getTextPainter() != null) {
tn.setTextPainter(ctx.getTextPainter());
}
textNode = tn;
cgn.add(tn);
associateSVGContext(ctx, e, cgn);