theJGraphPane.setNodePainter(NodeType1.class, new ShapeNodePainter(ShapeNodePainter.RECTANGLE, light_blue, dark_blue, black));
theJGraphPane.setNodePainter(NodeType2.class, new ShapeNodePainter(ShapeNodePainter.ELLIPSE, light_red, dark_red, black));
theJGraphPane.setNodePainter(NodeType3.class, new ShapeNodePainter(ShapeNodePainter.TRIANGLE, light_green, dark_green, black));
theJGraphPane.setNodePainter(NodeType4.class, new ClusterNodePainter(ShapeNodePainter.ELLIPSE, light_red, dark_red, black, true, new RowImageMap()));
theJGraphPane.setEdgePainter(LoopEdge.class, new LoopEdgePainter(gray, gray, LoopEdgePainter.CIRCULAR));
theJGraphPane.setEdgePainter(LoopEdge2.class, new LoopEdgePainter(gray, gray, LoopEdgePainter.RECTANGULAR));
theJGraphPane.setEdgePainter(TextEdge.class, new LineWithTextEdgePainter(gray, gray, false));
theJGraphPane.setEdgePainter(LineEdge.class, new LineEdgePainter(gray, gray, true));
theJGraphPane.setEdgePainter(ArrowEdge.class, new ArrowEdgePainter <Edge>());
theJGraphPane.setEdgePainter(ClusterEdge.class, new ClusterEdgePainter <ClusterEdge>());
theJGraphPane.setDefaultEdgePainter(new LineEdgePainter(gray, gray, false));