custom resizing [message #240928] |
Thu, 24 January 2008 07:57 |
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 06:24 |
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 #240969 is a reply to message #240945] |
Sat, 26 January 2008 06:18 |
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 07:04 |
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 #241041 is a reply to message #241032] |
Mon, 28 January 2008 10:36 |
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 12:38 |
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 13:10 |
Neeraj Bhusare Messages: 177 Registered: July 2009 Location: Canada |
Senior 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...
Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
|
|
|
Powered by
FUDForum. Page generated in 0.02326 seconds