ibm_ilog.graphlayout.hierarchical.HierarchicalConstraint
Object » ibm_ilog.graphlayout.hierarchical.HierarchicalConstraint
dojo.require("ibm_ilog.graphlayout.hierarchical.HierarchicalConstraint");
The abstract class HierarchicalConstraint
is the base
class for constraints of the Hierarchical Layout.
Constraints can be used to influence the way the layout algorithms
partition the nodes into levels and order the nodes within the
levels.
Method Summary
- actAfterAdd(manager) Acts after the constraint was added to the constraint manager.
- constructor(priority)
- copy() Copies the constraint.
- getPriority() returns Number Returns the priority of the constraint.
- setPriority(priority) Sets the priority of the constraint.
- validate(model) Returns <tt>true</tt> if the constraint is valid in the input graph model.
- validateForLayout(graph) Sets the valid flag of the constraint during layout.
Methods
Acts after the constraint was added to the constraint manager.
Parameter | Type | Description |
---|---|---|
manager |
Returns Number
Returns the priority of the constraint.
If there are conflicts between constraints, the constraint with the highest priority wins.
Sets the priority of the constraint. If there are conflicts between constraints, the constraint with the highest priority wins.
Parameter | Type | Description |
---|---|---|
priority |
Returns <tt>true</tt> if the constraint is valid in the input graph
model.
Parameter | Type | Description |
---|---|---|
model |