VisualShape vS = VisualShape.get(visualization);
if (vS != null) {
vS.setDefaultShape(1);
}
Look at infovis.visualization.render.VisualShape for the standard repertoire of shapes.
0 = rect
1 = ellipse/circle
2 = rounded rect
4 = triangle
4 = diamond
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi everybody,
can anyone tell me how to change the shape of a node?
Kind Regards
Paul
VisualShape vS = VisualShape.get(visualization);
if (vS != null) {
vS.setDefaultShape(1);
}
Look at infovis.visualization.render.VisualShape for the standard repertoire of shapes.
0 = rect
1 = ellipse/circle
2 = rounded rect
4 = triangle
4 = diamond