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) -> BoolParameters
nodeThe 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() -> BoolReturn 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
argsObjectThe object, which provides arguments for the rule.
-
Applies this ConstraintRule on the specified DiagramNode.
Declaration
Swift
open func applyConstraintRule(_ node: DiagramNode)Parameters
nodeThe DiagramNode at which the ConstraintRule is applied.
ConstraintRule Class Reference