Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:17 Go to next message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 341
Registered: July 2009
Location: Paris Saclay, France
Senior Member
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 14: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 16: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 09:04 Go to previous message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 341
Registered: July 2009
Location: Paris Saclay, France
Senior Member
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: Fri Apr 26 21:51:12 GMT 2024

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

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

Back to the top