Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Snapping bottom of figure to grid
Snapping bottom of figure to grid [message #230334] Fri, 09 February 2007 00:02
Calman Steynberg is currently offline Calman SteynbergFriend
Messages: 10
Registered: July 2009
Junior Member
I've been trying to snap the bottom of a figure to the grid, but I
havent been able to get it to work.

From what I understand, I need to subclass SnapToHelper, and override
either snapRectangle or snapPoint, but after that I'm lost.

I tried changing the snapLocations and the snapDirections, but once I
put a different value in there, the figure just stops snapping. The ONLY
things that seem to work is PositionConstants.HORIZONTAL and

Could someone point me at some sample code that does this, or maybe tell
me what I need to do to get this to work?

Any help would be greatly appreciated.

Previous Topic:mouseDoubleClick
Next Topic:Flowlayout and childrens size
Goto Forum:

Current Time: Sun Dec 05 18:14:15 GMT 2021

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

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

Back to the top