Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » feedbackFigure snap to parent during drag
feedbackFigure snap to parent during drag [message #189725] Thu, 28 July 2005 17:54 Go to next message
Eclipse UserFriend
Originally posted by: gef.oppacher.ca

Hi,

I'm trying to force my feedbackFigure to stay attached to a parent figure.
I have a small box which I want to drag around the outside of it's parent
(a larger rectangle). I want the feedBackFigure to stay on the parent
rectangle even if the mouse is pulled away from the figure. Any thoughts
on how to do this? Right now I'm setting the bounds of the child inside
createFigure method of my ResizableEditPolicy subclass.

Thanks,
Yandu
Re: feedbackFigure snap to parent during drag [message #189783 is a reply to message #189725] Fri, 29 July 2005 15:01 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

Subclass SnapToHelper and adjust the request so that the child is snapping
at all times. This is how snapping is done for guides, geometry and grid.

I didn't understand the part about the child being outside the bounds of the
parent, though. I am guessing you mean a notional parent, and not a parent
figure.

"Yandu" <gef@oppacher.ca> wrote in message
news:38bd66137501dce8395782cc654f90db$1@www.eclipse.org...
> Hi,
>
> I'm trying to force my feedbackFigure to stay attached to a parent figure.
> I have a small box which I want to drag around the outside of it's parent
> (a larger rectangle). I want the feedBackFigure to stay on the parent
> rectangle even if the mouse is pulled away from the figure. Any thoughts
> on how to do this? Right now I'm setting the bounds of the child inside
> createFigure method of my ResizableEditPolicy subclass.
>
> Thanks,
> Yandu
>
Previous Topic:ActiveSelectionProvider
Next Topic:How to contribute an action to the GEF view's toolbar
Goto Forum:
  


Current Time: Thu Dec 26 18:30:09 GMT 2024

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

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

Back to the top