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));
			//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 ?


[Updated on: Wed, 14 August 2013 13:05]

Report message to a moderator

Previous Topic:Create two outline views
Next Topic:Draw2d FlowLayout
Goto Forum:

Current Time: Sat Oct 20 23:04:11 GMT 2018

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

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

Back to the top