|
|
Re: 'Maximum/Minimum Size Dimension' in gmfgraph has no effect [message #62667 is a reply to message #62359] |
Sun, 15 October 2006 10:32   |
Eclipse User |
|
|
|
Originally posted by: greenl.mot.com
Jinchao,
I met the same problem. My solution is to create a customized figure and
call setSize, setPreferredSize, setMaximumSize and setMinimumSize in the
constructor. This way, the figure can not be resized once it is created.
Unfortunately, the size of the figure can also be draw arbitrarily before it
is created, meaning, when the user click on the create tool button, he/she
can drag N drop an arbitrarily sized figure (not the same size I defined in
the Figure's constructor). It's quite boring...
"Jinchao Huang" <jchuang@ca.ibm.com> wrote in message
news:egp2o9$egm$1@utils.eclipse.org...
>I have solved my problem by making the figure/shape non-resizable in the
>generated edit part, though I still don't know how to make use of those
>max/min size properties. Any hints are welcome.
>
> Thanks,
> Jinchao
>
> "Jinchao Huang" <jchuang@ca.ibm.com> wrote in message
> news:ego5sj$j00$1@utils.eclipse.org...
>> Hi,
>>
>> With the Maximum/Minimum Size Dimension set in gmfgraph, the figure still
>> can be resized arbitrarily in the editor. I wonder if I have missed some
>> important steps.
>>
>> Thanks,
>>
>> Jinchao (Joseph) Huang
>>
>
>
|
|
|
Re: 'Maximum/Minimum Size Dimension' in gmfgraph has no effect [message #63530 is a reply to message #62667] |
Mon, 16 October 2006 11:50  |
Eclipse User |
|
|
|
Guys, do not think of *figure* dimension as of *node* dimension. We do try
to keep these concepts separated with distinct Figure and DiagramElement
hierarchies in .gmfgraph. Max/min size of the Figure are GEF equivalents,
and has nothing to do with diagram node/icon/whatever you call this limits.
Artem
"Green Law" <greenl@mot.com> wrote in message
news:egtgqo$g2g$1@utils.eclipse.org...
> Jinchao,
>
> I met the same problem. My solution is to create a customized figure and
> call setSize, setPreferredSize, setMaximumSize and setMinimumSize in the
> constructor. This way, the figure can not be resized once it is created.
> Unfortunately, the size of the figure can also be draw arbitrarily before
> it is created, meaning, when the user click on the create tool button,
> he/she can drag N drop an arbitrarily sized figure (not the same size I
> defined in the Figure's constructor). It's quite boring...
>
> "Jinchao Huang" <jchuang@ca.ibm.com> wrote in message
> news:egp2o9$egm$1@utils.eclipse.org...
>>I have solved my problem by making the figure/shape non-resizable in the
>>generated edit part, though I still don't know how to make use of those
>>max/min size properties. Any hints are welcome.
>>
>> Thanks,
>> Jinchao
>>
>> "Jinchao Huang" <jchuang@ca.ibm.com> wrote in message
>> news:ego5sj$j00$1@utils.eclipse.org...
>>> Hi,
>>>
>>> With the Maximum/Minimum Size Dimension set in gmfgraph, the figure
>>> still can be resized arbitrarily in the editor. I wonder if I have
>>> missed some important steps.
>>>
>>> Thanks,
>>>
>>> Jinchao (Joseph) Huang
>>>
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06913 seconds