Skip to main content


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 gezginFriend
Messages: 243
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 Apr 23 06:10:17 GMT 2024

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

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

Back to the top