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] Sat, 18 August 2012 20:21 Go to next message
Fatih Ok is currently offline Fatih Ok
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 17:29 Go to previous message
Fatih Ok is currently offline Fatih Ok
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: Tue Jun 18 02:45:21 EDT 2013

Powered by FUDForum. Page generated in 0.01535 seconds