marquee selection tool [message #233663] |
Fri, 27 April 2007 17:54  |
Eclipse User |
|
|
|
Right now when I want to select an object in the editor I need to
"paint" with marquee around the whole object. How can I, if possible
make selection of the object if any side of the marquee intersects with
object?
thanks,
Alex
|
|
|
|
Re: marquee selection tool [message #233695 is a reply to message #233680] |
Mon, 30 April 2007 09:25   |
Eclipse User |
|
|
|
Thanks Alex,
I have another related question. My figure is setup from a containing
layer that serves as a parent for image and label layers. When I want to
select the figure, I need to select the parent layer that is bigger than
other layers and without border (which is not visible by default) it's
hard to do it. Will implementing my own marquee tool help me in defining
selectable areas as well or do I need another approach?
Here are some reference images:
how figure is selected right now:
http://images22.fotki.com/v753/photos/6/66966/288150/fig1-vi .jpg
how figure should be selected:
http://images23.fotki.com/v765/photos/6/66966/288150/fig2-vi .jpg
thanks for your help,
Alex
Alex Boyko wrote:
> Hi,
>
> Marquee selection tool behaviors, like the one you are asking about,
> should be set up through #setMarqueeBehavior(int) method. You can chose
> between 3 behavious defined as constants within the class. However, I
> don't think that any of those behaviors would do for you. So, you'd have
> to create your own marquee selection tool that would just be a
> copy-paste of current MarqueeSelectionTool where you can define a new
> behavior and add support for it most likely only in 2 methods:
> #calculateNewSelection(Collection, Collection) and
> #getAllChildren(EditPart, Set). Just look how other behaviors are
> defined and supported.
> Hope this helps.
>
> Cheers,
> Alex
>
|
|
|
|
|
Re: marquee selection tool [message #239385 is a reply to message #233663] |
Wed, 24 October 2007 10:48  |
Eclipse User |
|
|
|
Originally posted by: swanbrook66.gmail.com
Aleksandr Krvavets wrote:
> Right now when I want to select an object in the editor I need to
> "paint" with marquee around the whole object. How can I, if possible
> make selection of the object if any side of the marquee intersects with
> object?
>
> thanks,
> Alex
Hi,
I have the exact same requirement as mentioned above (would have
thought this would be a standard mode but it isn't for some reason). I
have created my own selection tool based on the MarqueeSelectionTool
which uses intersects instead of contains to determine whether to select
an editpart or not. However, I am now stuck. How do I get my GMF
application to actually use this selection tool?
Help..please....
Thanks a lot.
|
|
|
Powered by
FUDForum. Page generated in 0.35898 seconds