ibm_ilog.graphlayout.hierarchical.HierarchicalRelativeConstraint
Object » ibm_ilog.graphlayout.hierarchical.HierarchicalConstraint » ibm_ilog.graphlayout.hierarchical.HierarchicalRelativeConstraint
dojo.require("ibm_ilog.graphlayout.hierarchical.HierarchicalRelativeConstraint");
RelativeConstraint
is the base class of
RelativeLevelConstraint
and
RelativePositionConstraint
.
Both classes have common internal functionality.
Property Summary
Method Summary
- actAfterAdd(manager) Acts after the constraint was added to the constraint manager.
- constructor(a0, a1, a2)
- 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.
Properties
Methods
Acts after the constraint was added to the constraint manager.
Parameter | Type | Description |
---|---|---|
manager |
Parameter | Type | Description |
---|---|---|
a0 | ||
a1 | ||
a2 |
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 |
Sets the valid flag of the constraint during layout.
The purpose is the same as validate, but this is used temporarily
during layout while HierarchicalConstraint.validate()
is used to remove invalid constraints completely.
Parameter | Type | Description |
---|---|---|
graph |