Hi all,
on Diagram i want to show polygone shape and i code as;
ScalablePolygonShape dia = new ScalablePolygonShape();
dia.addPoint(new Point(0, 0));
dia.addPoint(new Point(10, 0));
dia.addPoint(new Point(5,5));
dia.setFill(true);
dia.setOutline(true);
dia.setBackgroundColor(ColorConstants.green);
dia.setForegroundColor(ColorConstants.black);
//diamond.setBorder(new MarginBorder(5, 5, 5, 5));
this.add(dia, BorderLayout.CENTER);
But when i run this class i cant see this polygon in Diagram but its parent shape created in Diagram
Anyone can help me to do this ?
Regards
[Updated on: Wed, 14 August 2013 09:05]
Report message to a moderator