Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Polygon
Polygon [message #227471] Sun, 26 April 2009 16:44 Go to next message
Eclipse UserFriend
Hello

I want to draw a rectangle and the inside of this rectangle a polygon, I
want when I modify the size of rectangle the polygon still fix in its
place.
How to make it?

Thanks
Re: Polygon [message #227504 is a reply to message #227471] Mon, 27 April 2009 05:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cayla_sha.gmx.net

Hello Arij,

for how to define a figure in its own class and how to define a figure
always relativly to its bounds, look at the Port in the Taipan-Example:
http://wiki.eclipse.org/index.php/GMF_Tutorial#Quick_Start

For how to draw a figure inside of another figure, look at:
http://wiki.eclipse.org/GMF_Newsgroup_Q_and_A#How_do_I_draw_ an_ellipse_inside_another_ellipse.3F

Best wishes
Julia


Arij schrieb:
> Hello
>
> I want to draw a rectangle and the inside of this rectangle a polygon, I
> want when I modify the size of rectangle the polygon still fix in its
> place.
> How to make it?
>
> Thanks
>
Re: Polygon [message #227602 is a reply to message #227471] Mon, 27 April 2009 08:10 Go to previous messageGo to next message
Eclipse UserFriend
Hello Arij,

AFAIR this is a default behavior for Polygon figure.

-----------------
Alex Shatalin
Re: Polygon [message #227764 is a reply to message #227602] Mon, 27 April 2009 16:10 Go to previous messageGo to next message
Eclipse UserFriend
Yes sir but when I modify the size of rectangle the place of polygon is
going to change, but I want that the polygon is always stuck in border low
of rectangle.

Thank you
Re: Polygon [message #227840 is a reply to message #227764] Tue, 28 April 2009 07:03 Go to previous message
Eclipse UserFriend
Hello Arij,

Then the reason should be in a figure containing this polygon. Can you check
if it was moved?

-----------------
Alex Shatalin
Previous Topic:Drag and Drop on a diagram creates EditPart in wrong place
Next Topic:Taipan example: SVGFigure
Goto Forum:
  


Current Time: Mon Nov 10 01:06:33 EST 2025

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

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

Back to the top