Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » snapping GraphicalEditParts
snapping GraphicalEditParts [message #173474] Thu, 24 March 2005 14:55 Go to next message
Eclipse UserFriend
Originally posted by: jgreen.upb.de

Hi,
I have a question of how I can implement a "snap" feature in my editor.
You can think of something like a toy train track editor in which I want
to snap two "track"-EditParts when I drag the one close to the other.

I'd be really happy about some advice or some hints!

Thanks

Joel
Re: snapping GraphicalEditParts [message #173506 is a reply to message #173474] Thu, 24 March 2005 15:58 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
In the logic example, enable Snap To Geometry from the view menu. See how
logic example uses the SnapToGeometry class to achieve this.

"Joel Greenyer" <jgreen@upb.de> wrote in message
news:d1up99$m5d$1@news.eclipse.org...
> Hi,
> I have a question of how I can implement a "snap" feature in my editor.
> You can think of something like a toy train track editor in which I want
> to snap two "track"-EditParts when I drag the one close to the other.
>
> I'd be really happy about some advice or some hints!
>
> Thanks
>
> Joel
Previous Topic:creating connections without user interaction
Next Topic:clipping problem
Goto Forum:
  


Current Time: Thu Apr 25 15:50:48 GMT 2024

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

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

Back to the top