Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to create a compartment (circle in a circle centered) ?
How to create a compartment (circle in a circle centered) ? [message #902615] Sun, 19 August 2012 00:21 Go to next message
Fatih Ok is currently offline Fatih OkFriend
Messages: 8
Registered: April 2010
Junior Member
I want to have centered black circle in a circle as compartment in gmfgraph.

I have two problems:

1. the inner circle is not centered
2. I have a thin black line over the outer circle after mapping


a figure outer_ellipse with size (40,40) (label is at outside)
a figure inner_ellipse with size (20,20),location (5,5),color=black (without label)

compartment -> outer_ellipse

Can somebody explain me how to fix this problem? I tried a lot of things with layout etc., but i can't fix.

On the attachment image is more details with screetshots about the compartment problem, my figures and mapping.
Re: How to create a compartment (circle in a circle centered) ? [message #904142 is a reply to message #902615] Mon, 27 August 2012 21:29 Go to previous message
Fatih Ok is currently offline Fatih OkFriend
Messages: 8
Registered: April 2010
Junior Member
I solved one of the problems with Margin Border and Insets... So can i set the inner_circle at center position...

	
protected NodeFigure createNodeFigure() {
 NodeFigure figure = createNodePlate();
 figure.setLayoutManager(new StackLayout());
 IFigure shape = createNodeShape();
 figure.add(shape);
 figure.setBorder(new MarginBorder(getMapMode()
 .DPtoLP(8), getMapMode().DPtoLP(5), getMapMode().DPtoLP(0),
 getMapMode().DPtoLP(0)));
 contentPane = setupContentPane(shape);
return figure;
}


But the problem the thin black line on top of outer_circle is still there !! This thin black line is because of the COMPARTMENT! I can't find the reason!
(Some more informations: Compartment Label is false. Outer_circel's label is extern. Outer_circle is not resizeable. Inner_circle is also not resizeable.)

Has anybody an idea or solution?
Previous Topic:Is displaying part of GMF model possible?
Next Topic:Project explorer display problem
Goto Forum:
  


Current Time: Wed Oct 28 23:31:36 GMT 2020

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

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

Back to the top