[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Layout issue with Polygon in Composite Figure

Hello Christian,

perhaps these links can help you:

1. Here they descripe how to draw an ellipse inside of an ellipse. Perhaps it`s easier to draw the romb and the rectangle in one figure? http://wiki.eclipse.org/GMF_Newsgroup_Q_and_A#How_do_I_draw_an_ellipse_inside_another_ellipse.3F
I had a simliar problem: I wanted a circle centered in a triangle. After some fruitless approaches with one circle and one triangle I made one figure where I draw both at once. First I draw the triangle, then I calculate the radius of the in-circle and draw the circle accordingly. That is also good, because then the circle becomes also bigger when the triangle becomes bigger.


2. For the Figure, perhaps the Taipan Tutorial helps you:
http://wiki.eclipse.org/index.php/GMF_Tutorial#Quick_Start
As you can see, they use for the port some kind of christmas-tree :D They use a own class for the port-figure.


Best wishes
Julia