ConstraintRule
open class ConstraintRule
Identifies a rule of constraint.
-
Checks if the rule is applicable to the specified DiagramNode.
Declaration
Swift
open func isRuleAppliable(_ node: DiagramNode) -> Bool
Parameters
node
The DiagramNode against which the rule is checked.
Return Value
true if the rule can be applied; otherwise false.
-
Checks if the rule needs more args.
Declaration
Swift
open func needMoreArgs() -> Bool
Return Value
true if the rule needs more args; otherwise false.
-
Gets arguments for this rule from the specified object;
Declaration
Swift
open func getArgsFrom(_ argsObject: AnyObject?)
Parameters
argsObject
The object, which provides arguments for the rule.
-
Applies this ConstraintRule on the specified DiagramNode.
Declaration
Swift
open func applyConstraintRule(_ node: DiagramNode)
Parameters
node
The DiagramNode at which the ConstraintRule is applied.