Packagecom.yworks.canvas.input.snapLines
Classpublic class SnapLineSnapType
InheritanceSnapLineSnapType Inheritance Object

The type of a snap line. A snap line can be used for multiple types of snaps by using a bit wise combination of different flags.

See also

SnapLine.snapType


Public Constants
 ConstantDefined By
  ALL : uint
[static] Describes snap lines to which all elements will snap at all sides
SnapLineSnapType
  BOTTOM : uint = 2
[static] Describes snap lines to which the bottom sides of rectangular elements will snap.
SnapLineSnapType
  CENTER : uint = 16
[static] Describes snap lines to which the center of elements will snap.
SnapLineSnapType
  HORIZONTAL : uint
[static] Describes horizontal snap lines.
SnapLineSnapType
  LEFT : uint = 4
[static] Describes snap lines to which the left sides of rectangular elements will snap.
SnapLineSnapType
  NONE : uint = 0
[static] Describes snap lines to which nothing will snap.
SnapLineSnapType
  RIGHT : uint = 8
[static] Describes snap lines to which the right sides of rectangular elements will snap.
SnapLineSnapType
  TOP : uint = 1
[static] Describes snap lines to which the top sides of rectangular elements will snap.
SnapLineSnapType
  VERTICAL : uint
[static] Describes vertical snap lines.
SnapLineSnapType
Constant Detail
ALLConstant
public static const ALL:uint

Describes snap lines to which all elements will snap at all sides

BOTTOMConstant 
public static const BOTTOM:uint = 2

Describes snap lines to which the bottom sides of rectangular elements will snap.

CENTERConstant 
public static const CENTER:uint = 16

Describes snap lines to which the center of elements will snap.

HORIZONTALConstant 
public static const HORIZONTAL:uint

Describes horizontal snap lines.

LEFTConstant 
public static const LEFT:uint = 4

Describes snap lines to which the left sides of rectangular elements will snap.

NONEConstant 
public static const NONE:uint = 0

Describes snap lines to which nothing will snap.

RIGHTConstant 
public static const RIGHT:uint = 8

Describes snap lines to which the right sides of rectangular elements will snap.

TOPConstant 
public static const TOP:uint = 1

Describes snap lines to which the top sides of rectangular elements will snap.

VERTICALConstant 
public static const VERTICAL:uint

Describes vertical snap lines.