Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » 'Maximum/Minimum Size Dimension' in gmfgraph has no effect
'Maximum/Minimum Size Dimension' in gmfgraph has no effect [message #62194] Fri, 13 October 2006 13:55 Go to next message
Jinchao (Joseph) is currently offline Jinchao (Joseph)Friend
Messages: 12
Registered: July 2009
Junior Member
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 #62359 is a reply to message #62194] Fri, 13 October 2006 22:07 Go to previous messageGo to next message
Jinchao (Joseph) is currently offline Jinchao (Joseph)Friend
Messages: 12
Registered: July 2009
Junior Member
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 #62667 is a reply to message #62359] Sun, 15 October 2006 14:32 Go to previous messageGo to next message
Eclipse UserFriend
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 15:50 Go to previous message
Artem Tikhomirov is currently offline Artem TikhomirovFriend
Messages: 222
Registered: July 2009
Senior Member
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
>>>
>>
>>
>
>
Previous Topic:Missing PropertyProvider
Next Topic:UML2 associations, again
Goto Forum:
  


Current Time: Sat Jul 27 18:22:44 GMT 2024

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

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

Back to the top