Skip to main content



      Home
Home » Eclipse Projects » GEF » MarqueeDragTracker request
MarqueeDragTracker request [message #48454] Fri, 06 December 2002 15:22
Eclipse UserFriend
Originally posted by: Vadim.Strizhevsky._at_.morganstanley.com

Hi,

I'd like to have a MarqueeDragTracker, (that I return from my
RootEditPart) to select all items that are only partially touched by the
marquee rectangle, not
only the ones that are completely inside. I hope I'm not missing something
simple (again ;), but the only way I was able to achieve this was to
duplicate MarqueeSelectionTool and MarqueeDragTracker, and change one line
in calculateNewSelection() function to do an or check on all 4 corners.

Because this function and many others that it uses and used by other
protected fucntions are private it wasn't possible to do this in a
subclass. It would be nice if MarqueeSelectionTool either provided an
option to do "partial-touch" selection or was modified to be more readily
subclassable. I hate to have to copy the whole class just to change one
line of behavior.

Thanks a lot.
-Vadim
Previous Topic:attaching label to connection and anchors
Next Topic:Newbie GEF question
Goto Forum:
  


Current Time: Wed Jul 16 12:13:02 EDT 2025

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

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

Back to the top