vv1.getRenderContext().setEdgeShapeTransformer(new EdgeShape.Line());
vv0.addChangeListener(vv1);
vv1.addChangeListener(vv2);
vv0.getRenderContext().setVertexLabelTransformer(new ToStringLabeller());
vv2.getRenderContext().setVertexLabelTransformer(new ToStringLabeller());
Color back = Color.decode("0xffffbb");
vv0.setBackground(back);
vv1.setBackground(back);
vv2.setBackground(back);
vv0.getRenderer().getVertexLabelRenderer().setPosition(Renderer.VertexLabel.Position.CNTR);
vv0.setForeground(Color.darkGray);
vv1.getRenderer().getVertexLabelRenderer().setPosition(Renderer.VertexLabel.Position.CNTR);
vv1.setForeground(Color.darkGray);
vv2.getRenderer().getVertexLabelRenderer().setPosition(Renderer.VertexLabel.Position.CNTR);
vv2.setForeground(Color.darkGray);
// share one PickedState between the two views
PickedState<String> ps = new MultiPickedState<String>();
vv0.setPickedVertexState(ps);
vv1.setPickedVertexState(ps);
vv2.setPickedVertexState(ps);
PickedState<Number> pes = new MultiPickedState<Number>();
vv0.setPickedEdgeState(pes);
vv1.setPickedEdgeState(pes);
vv2.setPickedEdgeState(pes);
// set an edge paint function that will show picking for edges
vv0.getRenderContext().setEdgeDrawPaintTransformer(new PickableEdgePaintTransformer<Number>(vv0.getPickedEdgeState(), Color.black, Color.red));
vv0.getRenderContext().setVertexFillPaintTransformer(new PickableVertexPaintTransformer<String>(vv0.getPickedVertexState(),
Color.red, Color.yellow));
vv1.getRenderContext().setEdgeDrawPaintTransformer(new PickableEdgePaintTransformer<Number>(vv1.getPickedEdgeState(), Color.black, Color.red));
vv1.getRenderContext().setVertexFillPaintTransformer(new PickableVertexPaintTransformer<String>(vv1.getPickedVertexState(),
Color.red, Color.yellow));
// add default listeners for ToolTips
vv0.setVertexToolTipTransformer(new ToStringLabeller());
vv1.setVertexToolTipTransformer(new ToStringLabeller());
vv2.setVertexToolTipTransformer(new ToStringLabeller());
vv0.setLayout(new BorderLayout());
vv1.setLayout(new BorderLayout());
vv2.setLayout(new BorderLayout());