Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Problems setting size of figures below 40
Problems setting size of figures below 40 [message #60633] Tue, 10 October 2006 13:20 Go to next message
Eclipse UserFriend
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 #60635 is a reply to message #60633] Tue, 10 October 2006 13:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

Add DefaultSizeFacet to your node.

Jan Herriger wrote:
> 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 #60638 is a reply to message #60635] Tue, 10 October 2006 14:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jan.herriger.gmx.de

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.
Re: Problems setting size of figures below 40 [message #60639 is a reply to message #60638] Tue, 10 October 2006 14:26 Go to previous messageGo to next message
Eclipse UserFriend
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.
>
Re: Problems setting size of figures below 40 [message #60648 is a reply to message #60639] Wed, 11 October 2006 04:39 Go to previous messageGo to next message
Eclipse UserFriend
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.
>>
>
>
Re: Problems setting size of figures below 40 [message #61483 is a reply to message #60648] Thu, 12 October 2006 08:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jan.herriger.gmx.de

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.
>>
>
>
Re: Problems setting size of figures below 40 [message #61608 is a reply to message #61483] Thu, 12 October 2006 09:43 Go to previous messageGo to next message
Eclipse UserFriend
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.
>>>
>>
>>


Re: Problems setting size of figures below 40 [message #62074 is a reply to message #61608] Fri, 13 October 2006 07:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jan.herriger.gmx.de

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.
>>>
>
>
Re: Problems setting size of figures below 40 [message #63395 is a reply to message #62074] Mon, 16 October 2006 08:45 Go to previous message
Eclipse UserFriend
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.
>>>>
>>
Previous Topic:Strange behaviour overiding use of tabbedPropertyView in graphical GMF-Editor
Next Topic:Missing files after generating the diagram code
Goto Forum:
  


Current Time: Fri May 23 12:50:46 EDT 2025

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

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

Back to the top