Hello,
I tried to create a rectangle with a defined size (width: 10, height: 40).
gmfgraph:
<figures
xsi:type="gmfgraph:Rectangle"
referencingElements="Transition"
name="TransitionFigure">
<layout xsi:type="gmfgraph:XYLayout"/>
<maximumSize dx="10" dy="40"/>
<minimumSize dx="10" dy="40"/>
<preferredSize dx="10" dy="40"/>
<size x="10" y="40"/>
</figures>
This doesn't seem to work. At runtime, the figure shows up having its
standard width of 40. As I set the dimension to 40+, everything works fine.
Defining this rectangle inside a container rectangle would be a workaround:
<figures
xsi:type="gmfgraph:Rectangle"
referencingElements="Transition"
name="TransitionFigure"
outline="false"
fill="false">
<children
xsi:type="gmfgraph:Rectangle"
name="TransitionFigureBody">
<layout xsi:type="gmfgraph:XYLayout"/>
<maximumSize dx="10" dy="40"/>
<minimumSize dx="10" dy="40"/>
<preferredSize dx="10" dy="40"/>
<size x="10" y="40"/>
</children>
</figures>
This is't really satisfying, because it results in gaps between nodes
and edges. Any Ideas?
Best regards
Jan