Skip to main content



      Home
Home » Eclipse Projects » GEF » Snapping bottom of figure to grid
Snapping bottom of figure to grid [message #230334] Thu, 08 February 2007 19:02
Eclipse UserFriend
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: Fri Jul 18 22:04:18 EDT 2025

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

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

Back to the top