Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » custom resizing
custom resizing [message #240928] Thu, 24 January 2008 02:57 Go to next message
Eclipse User
Originally posted by: shady_86.sify.com

hello everybody,

i want to make a circle which i can make if i provide the same height and width to the ellipse. but if i will resize it, the circle will be deformed.

so how can i disable the central resizing points leaving only the corner resizing points, or if possible how can i use the resizing option in custom style?..,
Re: custom resizing [message #240940 is a reply to message #240928] Fri, 25 January 2008 01:24 Go to previous messageGo to next message
Eclipse User
Originally posted by: shady_86.sify.com

i just want that when i resize my edit part the width and height of the edit part remains same so that the structure of the circle is not distorted,

so if any one knows that where this part is handled (the method which handles the resizing) in gef then please do tell me, so that i can try changing it..,
Re: custom resizing [message #240945 is a reply to message #240940] Fri, 25 January 2008 01:47 Go to previous messageGo to next message
Neeraj Bhusare is currently offline Neeraj Bhusare
Messages: 93
Registered: July 2009
Location: India
Member
sharad singh wrote:

> i just want that when i resize my edit part the width and height of the edit
part remains same so that the structure of the circle is not distorted,

> so if any one knows that where this part is handled (the method which
handles the resizing) in gef then please do tell me, so that i can try
changing it..,

Hello Sharad,
On resizing, you need to make sure that your model gets
updated properly. You need to look at the command you have written to
update the circle model.

Neeraj


Best regards, Neeraj
Re: custom resizing [message #240969 is a reply to message #240945] Sat, 26 January 2008 01:18 Go to previous messageGo to next message
Eclipse User
Originally posted by: shady_86.sify.com

thanks neeraj,

actually i am understanding gef through the examples program so i didnt knew that this part is also handled by the commands only, well thanks for directing me in the correct way.
i will check the commands classes and will try to resolve it

regards,
Re: custom resizing [message #241022 is a reply to message #240945] Mon, 28 January 2008 02:04 Go to previous messageGo to next message
Eclipse User
Originally posted by: shady_86.sify.com

i have been looking my commands codes for a long time now...

what i want can be achieved only if i can set delta height and delta width the same,

but this is handled by the gef only how can i change it according to me..,
Re: custom resizing [message #241032 is a reply to message #241022] Mon, 28 January 2008 04:38 Go to previous messageGo to next message
Neeraj Bhusare is currently offline Neeraj Bhusare
Messages: 93
Registered: July 2009
Location: India
Member
sharad wrote:

> i have been looking my commands codes for a long time now...

> what i want can be achieved only if i can set delta height and delta width
the same,

> but this is handled by the gef only how can i change it according to me..,

Well, GEF is not supposed to know anything about the your model. This
enables us to come up with an editor based on our 'Domain Specific model'.
All the information about the objects (circle in your case), is persisted
in the model.
Since you are trying to resize your objects, you need to investigate the
Layout policy installed on your EditPart.

You may like to have a look at these links-
http://wiki.eclipse.org/GEF_Description
http://www.eclipse.org/articles/Article-GEF-diagram-editor/s hape.
This will help you to get a better understanding of the framework.


Best regards, Neeraj
Re: custom resizing [message #241041 is a reply to message #241032] Mon, 28 January 2008 05:36 Go to previous messageGo to next message
Eclipse User
Originally posted by: shady_86.sify.com

> Well, GEF is not supposed to know anything about the
> your model. This
> enables us to come up with an editor based on our
> 'Domain Specific model'.
> All the information about the objects (circle in your
> case), is persisted
> in the model.

ya neeraj i have set the initial sizes and so when i create the circle its a circle only.

> Since you are trying to resize your objects, you need
> to investigate the
> Layout policy installed on your EditPart.

thanks i will see further in the layout policy that i have used


>
> You may like to have a look at these links-
> http://wiki.eclipse.org/GEF_Description
> http://www.eclipse.org/articles/Article-GEF-diagram-ed
> itor/shape.
> This will help you to get a better understanding of
> the framework.
>

i am sorry :) but i think the second link is not working
Re: custom resizing [message #241051 is a reply to message #241032] Mon, 28 January 2008 07:38 Go to previous messageGo to next message
Eclipse User
Originally posted by: shady_86.sify.com

thanks a lot neeraj at last i have managed to maintain my circle as a circle :)

thanks for telling me about the edit policy concept which actually solved the problem..,
Re: custom resizing [message #241056 is a reply to message #241051] Mon, 28 January 2008 08:10 Go to previous message
Neeraj Bhusare is currently offline Neeraj Bhusare
Messages: 93
Registered: July 2009
Location: India
Member
sharad wrote:

> thanks a lot neeraj at last i have managed to maintain my circle as a circle
:)

> thanks for telling me about the edit policy concept which actually solved
the problem..,

Hey thats good...Congrats...


Best regards, Neeraj
Previous Topic:Saving EObjects
Next Topic:problem with selection provider: domain object wanted instead of editpart
Goto Forum:
  


Current Time: Wed Jul 30 23:33:36 EDT 2014

Powered by FUDForum. Page generated in 0.01866 seconds