Packagecom.yworks.canvas
Classpublic class GridSnapType
InheritanceGridSnapType Inheritance Object

The constants in this class describe to which grid elements an object shall snap. It can be used for the GraphSnapContext's gridSnapType property to determine what SnapResults shall be created for the set IGridConstraintProvider.

See also

com.yworks.graph.input.snapLines.GraphSnapContext.gridSnapType
SnapResult
IGridConstraintProvider


Public Constants
 ConstantDefined By
  ALL : uint
[static] Elements shall be snapped as well to horizontal and vertical grid lines as to grid points.
GridSnapType
  GRID_POINTS : uint = 0x004
[static] Elements shall be snapped to grid points.
GridSnapType
  HORIZONTAL_LINES : uint = 0x001
[static] Elements shall be snapped to horizontal grid lines.
GridSnapType
  LINES : uint
[static] Elements shall be snapped to horizontal and vertical grid lines.
GridSnapType
  NONE : uint = 0x000
[static] There is no grid snapping at all.
GridSnapType
  VERTICAL_LINES : uint = 0x002
[static] Elements shall be snapped to vertical grid lines.
GridSnapType
Constant Detail
ALLConstant
public static const ALL:uint

Elements shall be snapped as well to horizontal and vertical grid lines as to grid points.

GRID_POINTSConstant 
public static const GRID_POINTS:uint = 0x004

Elements shall be snapped to grid points.

HORIZONTAL_LINESConstant 
public static const HORIZONTAL_LINES:uint = 0x001

Elements shall be snapped to horizontal grid lines.

LINESConstant 
public static const LINES:uint

Elements shall be snapped to horizontal and vertical grid lines.

NONEConstant 
public static const NONE:uint = 0x000

There is no grid snapping at all.

VERTICAL_LINESConstant 
public static const VERTICAL_LINES:uint = 0x002

Elements shall be snapped to vertical grid lines.