LinkNodesBehavior
open class LinkNodesBehavior : BehaviorBase
Behavior that is suitable for creating whole diagrams. Drawing over empty screen area creates a DiagramNode instance. Drawing started over a node creates a DiagramLink.
-
Initializes a new instance of the LinkNodesBehavior class with the specified DiagramView, link type and node type.
Inherits BehaviorBase.
Declaration
Swift
public init(diagramView: DiagramView, nodeType: NSObject.Type, linkType: NSObject.Type)
Parameters
diagamView
The DiagramView to use with this behavior.
nodeType
The type of nodes to create.
linkType
The type of links to create.
Return Value
A new instance of the LinkNodesBehavior class.