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
PositionConstants.VERTICAL.

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.

Calman
Previous Topic:Outline map
Next Topic:mouseDoubleClick
Goto Forum:
  


Current Time: Thu Apr 18 02:17:13 GMT 2024

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

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

Back to the top