Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » sizing shapes when creating from palette
sizing shapes when creating from palette [message #187737] Mon, 19 May 2008 13:42 Go to next message
Eclipse UserFriend
Originally posted by: nico.lammers.gmail.com

Hi,

By default you can create the initial size of a shape when you select a
tool and then drag the size rectangle etc.

Is there any way to disallow this? I want my shapes to have a fixed
size. I already restricted the size after creation, but this is not
enough in my case.

Regards,

Nico Lammers
Re: sizing shapes when creating from palette [message #187827 is a reply to message #187737] Tue, 20 May 2008 07:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nico.lammers.gmail.com

anyone?

Nico Lammers wrote:
> Hi,
>
> By default you can create the initial size of a shape when you select a
> tool and then drag the size rectangle etc.
>
> Is there any way to disallow this? I want my shapes to have a fixed
> size. I already restricted the size after creation, but this is not
> enough in my case.
>
> Regards,
>
> Nico Lammers
Re: sizing shapes when creating from palette [message #187950 is a reply to message #187827] Tue, 20 May 2008 13:21 Go to previous message
Eclipse UserFriend
Originally posted by: nico.lammers.gmail.com

Solved by overriding ShapeEditPart#refreshBounds and setting the (in my
case constrained) size there

(actually I copied the original ShapeEditPart#refreshBounds and changed
the code I needed to change without calling refreshBounds in the superclass)

~ Nico


Nico Lammers wrote:
>
> anyone?
>
> Nico Lammers wrote:
>> Hi,
>>
>> By default you can create the initial size of a shape when you select
>> a tool and then drag the size rectangle etc.
>>
>> Is there any way to disallow this? I want my shapes to have a fixed
>> size. I already restricted the size after creation, but this is not
>> enough in my case.
>>
>> Regards,
>>
>> Nico Lammers
Previous Topic:How to move BorderItem Locaters when the Compartment is resized?
Next Topic:Making a compartment click-transparent
Goto Forum:
  


Current Time: Thu Apr 25 17:07:38 GMT 2024

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

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

Back to the top