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
diagamViewThe DiagramView to use with this behavior.
nodeTypeThe type of nodes to create.
linkTypeThe type of links to create.
Return Value
A new instance of the LinkNodesBehavior class.
LinkNodesBehavior Class Reference