Need Help in creating container Figure [message #131351] |
Fri, 07 May 2004 15:31 |
Eclipse User |
|
|
|
Originally posted by: sagivijay.yahoo.com
Hi All,
I am relatively new to GEF. I would like to do the following:
When the user drags an object from the Palette I would like to create a
label. However, I want that label to be present within a container figure
like say a RectangleFigure so that all the objects that the user has
created are present inside the rectangle figure. I would like the
rectangle figure to resize itself based on the size of the label created.
Also it should be possible to select the individual labels rather than the
entire container figure so that I can make changes to the model using the
properties view.
+----------+
| [label1] |
| [label2] |
| [label3] |
+----------+
I am presently able to create the labels without the surrounding container
figure so they kinda look like this
[label1]
[label2]
[label3]
How am I supposed to create the container figure. Should I create an
EditPart specifically for the container figure. I want the container
figure to be present by default (whether or not labels are added to it) If
so how do I access that figure from the editpart for creating the labels??
Any help like pointers to tutorials, sample source code would also be
helpful in this regard.
Thanks a lot,
Vijay
|
|
|
|
Powered by
FUDForum. Page generated in 0.03005 seconds