Problems setting size of figures below 40 [message #60633] |
Tue, 10 October 2006 13:20  |
Eclipse User |
|
|
|
Originally posted by: jan.herriger.gmx.de
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
|
|
|
|
|
|
|
|
|
|
Re: Problems setting size of figures below 40 [message #63395 is a reply to message #62074] |
Mon, 16 October 2006 08:45  |
Eclipse User |
|
|
|
Sorry, overlooked you were using 1.0.1... Too much focused on 2.0 ;)
Artem
"Jan Herriger" <jan.herriger@gmx.de> wrote in message
news:egnt2m$5fu$1@utils.eclipse.org...
> Thanks again. I knew where to add the facet. But the facet is unavailable
> in version 1.0.1.
>
> I installed Build: 2.0M1. Now, everything works fine.
>
> Artem Tikhomirov schrieb:
>> Well, if "added to diagram element" is not enough... here's the picture
>>
>> "Jan Herriger" <jan.herriger@gmx.de> wrote in message
>> news:egle47$bao$1@utils.eclipse.org...
>>> Thanks for your responses. Are we talking about different GMF versions?
>>> I'm using 1.0.1 and I just can't find DefaultSizeFacet.
>>>
>>> Artem Tikhomirov schrieb:
>>>> Changing code is not the best option here, using DefaultSizeFacet is
>>>> definitely better.
>>>> The facet could be added to appropriate DiagramElement, i.e.
>>>> 'Transition'
>>>> node from the initial post
>>>>
>>>> Artem
>>>>
>>>> "ase" <andye@xactium.com> wrote in message
>>>> news:eggokf$63o$1@utils.eclipse.org...
>>>>> I've also had this problem. Basically, you have to go into
>>>>> the EditPart code and reduce the size manually in the
>>>>> createNodePlate() method.
>>>>>
>>>>> It is pretty frustrating having to do it this way.
>>>>>
>>>>> Andy
>>>>>
>>>>>
>>>>> "Jan Herriger" <jan.herriger@gmx.de> wrote in message
>>>>> news:eggo4g$3v5$1@utils.eclipse.org...
>>>>>> I could't find such a facet, if I try to add a child to the node. Is
>>>>>> there
>>>>>> any information about DefaultSizeFacet?
>>>>>>
>>>>>> Dmitry Stadnik schrieb:
>>>>>>> Add DefaultSizeFacet to your node.
>>>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.07979 seconds