Packagecom.yworks.canvas.input.snapLines
Classpublic class SnapTypes
InheritanceSnapTypes Inheritance Object

Constant for use in SnapResult.snap and SnapResult.isSnapped. A flaggable enumeration of the different types of snaps that is used by SnapState in SnapResult implementations.

See also

com.yworks.canvas.input.snapLines.SnapResult.snap
com.yworks.canvas.input.snapLines.SnapResult.isSnapped
SnapContext
SnapState
SnapResult


Public Constants
 ConstantDefined By
  NOT_SNAPPED : uint = 0
[static] Indicates that the coordinate has not been snapped to its x and y values.
SnapTypes
  SNAPPED_X : uint = 1
[static] Indicates that the coordinate has been snapped to its x values.
SnapTypes
  SNAPPED_XY : uint
[static] Indicates that the coordinate has been snapped to its x and y values.
SnapTypes
  SNAPPED_Y : uint = 2
[static] Indicates that the coordinate has been snapped to its y values.
SnapTypes
Constant Detail
NOT_SNAPPEDConstant
public static const NOT_SNAPPED:uint = 0

Indicates that the coordinate has not been snapped to its x and y values.

SNAPPED_XConstant 
public static const SNAPPED_X:uint = 1

Indicates that the coordinate has been snapped to its x values.

SNAPPED_XYConstant 
public static const SNAPPED_XY:uint

Indicates that the coordinate has been snapped to its x and y values. This is a bit wise combination of SNAPPED_X and SNAPPED_Y.

See also

SNAPPED_YConstant 
public static const SNAPPED_Y:uint = 2

Indicates that the coordinate has been snapped to its y values.