Color.orange, .3);
NodeRenderer setRenderer = new BasicNodeRenderer(bgc,
new Ellipse2D.Double(0.0, 0.0, 40.0, 40.0),
new Ellipse2D.Double(0.0, 0.0, 600.0, 600.0), Color.red,
Color.red, .3);
TypedNodeRenderer typedRenderer = new TypedNodeRenderer(bgc,
defaultRenderer);
typedRenderer.addTypedRenderer(Integer.class, integerRenderer);
typedRenderer.addTypedRenderer(ArrayList.class, setRenderer);
typedRenderer.addTypedRenderer(String.class, stringRenderer);
// Use the renderer in the JGraph
GraphPane gp = new GraphPane(bgc, new BasicGraphModel());
bgc.getNodeController().setNodeRenderer(typedRenderer); // <=== HERE!