Skip to main content



      Home
Home » Eclipse Projects » GEF » How to move an figure in one direction
How to move an figure in one direction [message #220789] Fri, 04 August 2006 09:17 Go to next message
Eclipse UserFriend
Hi,

I would like to move a figure in a vertical and horizontal direction . I
don't know how to constraint the behavior of an edipart whitout press
SHIFT+ mouse mvt.
thx.
Re: How to move an figure in one direction [message #220811 is a reply to message #220789] Fri, 04 August 2006 10:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amechler.gmail.com

You could write your own SnapToHelper to constrain the possible target locations
when your editparts are being dragged.

(The DragEditPartsTracker which arranges the standard constrained move seems too
well protected against customization ?)

If theres a more orthodox way to implement a custom constrained move, I'd be
glad to know...

Regards,
Alex
Re: How to move an figure in one direction [message #220817 is a reply to message #220789] Fri, 04 August 2006 12:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

Override DragEditPartsTracker's updateTargetRequest().

"Patrick" <Patrick.Tessier@cea.fr> wrote in message
news:dbedd0c14c181d0b87b7d0fd7fd4b7d2$1@www.eclipse.org...
> Hi,
>
> I would like to move a figure in a vertical and horizontal direction . I
> don't know how to constraint the behavior of an edipart whitout press
> SHIFT+ mouse mvt.
> thx.
>
Re: How to move an figure in one direction [message #220850 is a reply to message #220817] Mon, 07 August 2006 05:04 Go to previous message
Eclipse UserFriend
Very Thanks,

I have modified the method "public DragTracker getDragTracker(Request
request)" of my editpart to return my owned DragEditPartsTracker in which
I rewrite the updateTargetRequest() method.
Previous Topic:question about move editpart
Next Topic:Text Alignment while DirectEditing a figure
Goto Forum:
  


Current Time: Sun Jul 06 14:39:24 EDT 2025

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

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

Back to the top