IBM ILOG Dojo Diagrammer 1.1.1 API Documentation
Legend: Array Boolean Constructor Date DomNode Error Function Namespace Number Object RegExp Singleton String

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

actAfterAdd
Acts after the constraint was added to the constraint manager.
ParameterTypeDescription
manager
constructor
ParameterTypeDescription
priority
copy
Copies the constraint.
getPriority
Returns Number

Returns the priority of the constraint.

If there are conflicts between constraints, the constraint with the highest priority wins.

setPriority

Sets the priority of the constraint. If there are conflicts between constraints, the constraint with the highest priority wins.

ParameterTypeDescription
priority
validate
Returns <tt>true</tt> if the constraint is valid in the input graph model.
ParameterTypeDescription
model
validateForLayout

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.

ParameterTypeDescription
graph