AnchorPoint

open class AnchorPoint

Specifies the locations in a node, to which the user is allowed to connect links.

  • Initializes a new instance of the AnchorPoint class with the specified coordinates.

    Declaration

    Swift

    public init(x: Double, y: Double)

    Parameters

    x

    The horizontal position of the anchor expressed as percent of the width of a node.

    y

    The vertical position of the anchor expressed as percent of the height of a node.

    Return Value

    The newly created AnchorPoint instance.

  • Initializes a new instance of the AnchorPoint class with the specified coordinates and restrictions.

    Declaration

    Swift

    public init(x: Double, y: Double, allowIncoming: Bool, allowOutgoing: Bool)

    Parameters

    x

    The horizontal position of the anchor expressed as percent of the width of a node.

    y

    The vertical position of the anchor expressed as percent of the height of a node.

    allowIncoming

    Specifies whether incoming links can connect to this anchor.

    allowOutgoing

    Specifies whether outgoing links can connect to this anchor.

    Return Value

    The newly created AnchorPoint instance.

  • Initializes a new instance of the AnchorPoint class with the specified coordinates, restrictions and style.

    Declaration

    Swift

    public init(x: Double, y: Double, allowIncoming: Bool, allowOutgoing: Bool, markStyle: MarkStyle)

    Parameters

    x

    The horizontal position of the anchor expressed as percent of the width of a node.

    y

    The vertical position of the anchor expressed as percent of the height of a node.

    allowIncoming

    Specifies whether incoming links can connect to this anchor.

    allowOutgoing

    Specifies whether outgoing links can connect to this anchor.

    markStyle

    Defines how the anchor point is marked visually.

    Return Value

    The newly created AnchorPoint instance.

  • Initializes a new instance of the AnchorPoint class with the specified coordinates, restrictions, style and color.

    Declaration

    Swift

    public init(x: Double, y: Double, allowIncoming: Bool, allowOutgoing: Bool, markStyle: MarkStyle, color: Color)

    Parameters

    x

    The horizontal position of the anchor expressed as percent of the width of a node.

    y

    The vertical position of the anchor expressed as percent of the height of a node.

    allowIncoming

    Specifies whether incoming links can connect to this anchor.

    allowOutgoing

    Specifies whether outgoing links can connect to this anchor.

    markStyle

    Defines how the anchor point is marked visually.

    color

    The color with which the anchor mark is painted.

    Return Value

    The newly created AnchorPoint instance.

  • Initializes a new instance of the AnchorPoint class with the specified coordinates, restrictions, style, color and column index.

    Declaration

    Swift

    public init(x: Double, y: Double, allowIncoming: Bool, allowOutgoing: Bool, color: Color, col: Int)

    Parameters

    x

    The horizontal position of the anchor expressed as percent of the width of a node.

    y

    The vertical position of the anchor expressed as percent of the height of a node.

    allowIncoming

    Specifies whether incoming links can connect to this anchor.

    allowOutgoing

    Specifies whether outgoing links can connect to this anchor.

    markStyle

    Defines how the anchor point is marked visually.

    color

    The color with which the anchor mark is painted.

    col

    Specifies a table’s column, with which the anchor point is associated.

    Return Value

    The newly created AnchorPoint instance.

  • Initializes a new instance of the AnchorPoint class with the specified coordinates, restrictions, style, color, column index and tag.

    Declaration

    Swift

    public init(x: Double, y: Double, allowIncoming: Bool, allowOutgoing: Bool, color: Color, col: Int, tag: AnyObject?)

    Parameters

    x

    The horizontal position of the anchor expressed as percent of the width of a node.

    y

    The vertical position of the anchor expressed as percent of the height of a node.

    allowIncoming

    Specifies whether incoming links can connect to this anchor.

    allowOutgoing

    Specifies whether outgoing links can connect to this anchor.

    markStyle

    Defines how the anchor point is marked visually.

    color

    The color with which the anchor mark is painted.

    col

    Specifies a table’s column, with which the anchor point is associated.

    tag

    User-defined data associated with the anchor point.

    Return Value

    The newly created AnchorPoint instance.

  • x

    Gets or sets the horizontal position of the anchor point expressed as percent of a node’s width.

    Declaration

    Swift

    open var x: Double
  • y

    Gets or sets the vertical position of the anchor point expressed as percent of a node’s height.

    Declaration

    Swift

    open var y: Double
  • Gets or sets a value indicating whether incoming links can be connected to this anchor.

    Declaration

    Swift

    open var allowIncoming: Bool
  • Gets or sets a value indicating whether the anchor point accepts outgoing connections.

    Declaration

    Swift

    open var allowOutgoing: Bool
  • Gets or sets the appearance of the anchor point mark. One of the MarkStyle enumeration values.

    Declaration

    Swift

    open var markStyle: MarkStyle
  • The color with which the anchor mark is painted.

    Declaration

    Swift

    open var color: Color
  • col

    Specifies a table’s column, with which the anchor point is associated.

    Declaration

    Swift

    open var col: Int
  • tag

    Specifies user-defined data associated with the anchor point.

    Declaration

    Swift

    open var tag: AnyObject?
  • Specifies the tool-tip associated with the anchor point.

    Declaration

    Swift

    open var toolTip: AnyObject?
  • Gets or sets whether the point’s X position is specified as percentage of node’s size or fixed offset from the node’s left side. One of the UnitType enumeration values.

    Declaration

    Swift

    open var xUnit: UnitType
  • Gets or sets whether the point’s Y position is specified as percentage of node’s size or fixed offset from the node’s left side. One of the UnitType enumeration values.

    Declaration

    Swift

    open var yUnit: UnitType