MinWidthConstraintRule
open class MinWidthConstraintRule : ConstraintRule
Provides constraint rule that forces a minimum width on a diagram item.
-
Checks if the rule could be applied on the specified node.
Declaration
Swift
open override func isRuleAppliable(_ node: DiagramNode) -> Bool
Parameters
node
The 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() -> Bool
Return Value
true if more arguments are needed; otherwise false.
-
Gets arguments from the specified object.
Declaration
Swift
open override func getArgsFrom(_ argsObject: AnyObject?)
Parameters
argsObject
An object that provides parameters or nil.
-
Applies the constraint rule on the specified object.
Declaration
Swift
open override func applyConstraintRule(_ node: DiagramNode)
Parameters
node
The DiagramNode to apply the constraint onto.