Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Composite figures from mindmap example in gmf 2
Composite figures from mindmap example in gmf 2 [message #153046] Tue, 02 October 2007 11:30 Go to next message
Eclipse UserFriend
Originally posted by: snej_NO-SPAM_.esuark.de

Hi there,

i wanted to reproduce the composite figure from the mindmap example,
this little stickman.

If i model it this way:

- Figure Descriptor CompositeFigure
|
+- Rectangle CompositeFigure
|
+- XY Layout
|
+- Ellipse Head
|
+- Polygon Body

Everything is renderd, only the body is not filled. Thats not fine but
my problem is that i need an external label. So i modeled it this way:

- Figure Descriptor CompositeFigure
|
+- Rectangle CompositeFigure
|
+- Stack Layout
|
+- Rectangle InnerFigure
| |
| +- Ellipse Head
| |
| +- Polygon Body
|
+- Label CompositeLabelFigure

But then only the head and the label are rendered, no body. The template
points and sizes are the same as in the first figure definition.

Any idea why this behaviour appears?

regards
jens
Re: Composite figures from mindmap example in gmf 2 [message #153304 is a reply to message #153046] Wed, 03 October 2007 11:17 Go to previous message
Eclipse UserFriend
Originally posted by: r.c.ladan.tue.nl

Jens Krause wrote:
> Hi there,
>
> i wanted to reproduce the composite figure from the mindmap example,
> this little stickman.
>
> If i model it this way:
>
> - Figure Descriptor CompositeFigure
> |
> +- Rectangle CompositeFigure
> |
> +- XY Layout
> |
> +- Ellipse Head
> |
> +- Polygon Body
>
> Everything is renderd, only the body is not filled. Thats not fine but
> my problem is that i need an external label. So i modeled it this way:
>
> - Figure Descriptor CompositeFigure
> |
> +- Rectangle CompositeFigure
> |
> +- Stack Layout
> |
> +- Rectangle InnerFigure
> | |
> | +- Ellipse Head
> | |
> | +- Polygon Body
> |
> +- Label CompositeLabelFigure
>
> But then only the head and the label are rendered, no body. The template
> points and sizes are the same as in the first figure definition.
>
I modeled it this way, which renders a filled head, an empty body (only the outline),
and an external label :

- Figure Descriptor ResourceFigure
|
+- Rectangle ResourceFigure (references parent fd)
|
+- XY Layout
+- Maximum Size 40,60
+- Minimum Size 40,60
+- Preferred Size 40,60
+- Size 40,60
+- Ellipse Head (references parent fd)
| |
| +- Foreground (220,220,250)
| +- Background (230,230,255)
| +- Size 40,20
+- Polygon Body (references parent fd)
|
+- Foreground (220,220,250)
+- Background (230,230,255)
+- Point 19x
- Figure Decriptor BasicLabelFigure
|
+ Label BasicLabelFigure (references it parent fd)

HTH,
Rene
Previous Topic:Add sub menu in context menu
Next Topic:Detecting editor type
Goto Forum:
  


Current Time: Wed Aug 27 10:49:19 EDT 2025

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

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

Back to the top