Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to create composite figures with more than two layers?
How to create composite figures with more than two layers? [message #80907] Sat, 25 November 2006 20:06 Go to next message
Eclipse UserFriend
I try to create a composite figure with more than two layers, i.e. a
rectangle (which shall be unvisible) containing an ellipse and a label.
Moreover, the ellipse should contain another ellipse.
In the generated editor, the rectangle is there and also the outer
ellipse together with the label, but the inner ellipse is not shown.

Here is the corresponding snippet from the gmfgraph document. What is wrong?

Thank you for your help in advance,
Gabi
------------------------------------------------------------ ------------

<figures
xsi:type="gmfgraph:Rectangle"
referencingElements="Place"
name="PlaceFigure"
outline="false"
lineWidth="0">
<layout
xsi:type="gmfgraph:BorderLayout"/>
<children
xsi:type="gmfgraph:Ellipse"
name="PlaceEllipse">
<layoutData
xsi:type="gmfgraph:BorderLayoutData"/>
<children
xsi:type="gmfgraph:Ellipse"
referencingElements="PlaceToken"
name="TokenEllipse">
<foregroundColor
xsi:type="gmfgraph:ConstantColor"
value="black"/>
<backgroundColor
xsi:type="gmfgraph:ConstantColor"
value="black"/>
<minimumSize
dx="20"
dy="20"/>
<preferredSize
dx="20"
dy="20"/>
</children>
</children>
<children
xsi:type="gmfgraph:Label"
referencingElements="PlaceName"
name="PlaceNameFigure"
text="&lt;...>">
<layoutData
xsi:type="gmfgraph:BorderLayoutData"
alignment="END"
vertical="true"/>
</children>
</figures>
Re: How to create composite figures with more than two layers? [message #94414 is a reply to message #80907] Fri, 19 January 2007 06:49 Go to previous message
Eclipse UserFriend
Originally posted by: sh.wilken.de

Gabriele Taentzer wrote:
>
> I try to create a composite figure with more than two layers, i.e. a
> rectangle (which shall be unvisible) containing an ellipse and a label.
> Moreover, the ellipse should contain another ellipse.
> In the generated editor, the rectangle is there and also the outer
> ellipse together with the label, but the inner ellipse is not shown.
>
> Here is the corresponding snippet from the gmfgraph document. What is
> wrong?
>
> Thank you for your help in advance,
> Gabi
> ------------------------------------------------------------ ------------
>
> <figures
> xsi:type="gmfgraph:Rectangle"
> referencingElements="Place"
> name="PlaceFigure"
> outline="false"
> lineWidth="0">
> <layout
> xsi:type="gmfgraph:BorderLayout"/>
> <children
> xsi:type="gmfgraph:Ellipse"
> name="PlaceEllipse">
> <layoutData
> xsi:type="gmfgraph:BorderLayoutData"/>
> <children
> xsi:type="gmfgraph:Ellipse"
> referencingElements="PlaceToken"
> name="TokenEllipse">
> <foregroundColor
> xsi:type="gmfgraph:ConstantColor"
> value="black"/>
> <backgroundColor
> xsi:type="gmfgraph:ConstantColor"
> value="black"/>
> <minimumSize
> dx="20"
> dy="20"/>
> <preferredSize
> dx="20"
> dy="20"/>
> </children>
> </children>
> <children
> xsi:type="gmfgraph:Label"
> referencingElements="PlaceName"
> name="PlaceNameFigure"
> text="&lt;...>">
> <layoutData
> xsi:type="gmfgraph:BorderLayoutData"
> alignment="END"
> vertical="true"/>
> </children>
> </figures>


We also have this problem. We create a composite figure consisting of 3
rectangles. In one of these rectangles we put another rectangle which
contains a Label. By selecting the shape we are able to give a text to
the label. But after that we cannot see the label.
The createContents method of the Figure seems to be correct.

Anybody some ideas ?


Regards Sascha
Previous Topic:Circuit exmple
Next Topic:Diagram "Arrange" action
Goto Forum:
  


Current Time: Thu Sep 18 13:42:39 EDT 2025

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

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

Back to the top