KeepInsideParentConstraintRule
open class KeepInsideParentConstraintRule : ConstraintRule
Provides constraint rule that keeps a node inside its parent.
-
Checks if the rule could be applied on the specified node.
Declaration
Swift
open override func isRuleAppliable(_ node: DiagramNode) -> BoolParameters
nodeThe DiagramNode on which the rule should be applied.
Return Value
True if the rule could be applied; otherwise false.
-
Checks if more arguments are needed.
Declaration
Swift
open override func needMoreArgs() -> BoolReturn Value
true if more arguments are needed; otherwise false.
-
Gets arguments from the specified object.
Declaration
Swift
open override func getArgsFrom(_ argsObject: AnyObject?)Parameters
argsObjectAn object that provides parameters or nil.
-
Applies the constraint rule on the specified object.
Declaration
Swift
open override func applyConstraintRule(_ node: DiagramNode)Parameters
nodeThe DiagramNode to apply the constraint onto.
KeepInsideParentConstraintRule Class Reference