Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Figure cant shown in Diagram
Figure cant shown in Diagram [message #1086627] Wed, 14 August 2013 13:04
serhat gezgin is currently offline serhat gezgin
Messages: 240
Registered: January 2013
Location: Izmir
Senior Member
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 13:05]

Report message to a moderator

Previous Topic:[Zest] Dot export compatibility
Next Topic:Export as Image Action - Not enabled at StartUp
Goto Forum:
  


Current Time: Tue Oct 21 07:13:11 GMT 2014

Powered by FUDForum. Page generated in 0.02825 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software