Methods
ibm_ilog.graphlayout.GraphLayout:
The link layout algorithm that will be executed on the contents of this graph
when performGraphLayout is called.
Gets the link layout algorithm that will be executed on the contents of this graph
when performGraphLayout is called.
ibm_ilog.graphlayout.GraphLayout:
The graph layout algorithm that will be executed on the contents of this graph
when performGraphLayout is called.
Gets the graph layout algorithm that will be executed on the contents of this graph
when performGraphLayout is called.
boolean:
True if graph layout is animated, false otherwise.
Returns the flags that determines if an animation must be displayed after a graph layout has been performed.
boolean:
True if fitToContents() is automatically called to show all the graph after a graph layout is performed.
Returne the boolean that determines if fitToContents is called after a graph layout is performed.
Returns the flag specifying if the link layout must be executed automatically
whenever the graph changes.
returns Boolean:
True if the link layout will be executed automatically whenever the graph changes.
False if the link layout is executed only by calling performGraphLayout explicitly.
Boolean
True if the graph layout will be executed automatically whenever the graph changes.
False if the graph layout is executed only by calling performGraphLayout explicitly.
Returns the flag specifying if the graph layout must be executed automatically
whenever the graph changes.
boolean:
True if the link layout is active, false otherwise.
Returns true if the link layout is active, or false otherwise.
boolean:
True if the graph layout is active, false otherwise.
Returns true if the graph layout is active, or false otherwise.
If a non-null graph layout has been specified by calling setNodeLayout(),
and if the graph layout is active (that is, unless setNodeLayoutActive(false) has been called),
then the graph layout algorithm is performed on the contents of this graph.
Then, if a non-null link layout has been specified by calling setLinkLayout(),
and if the link layout is active (that is, unless setLinkLayoutActive(false) has been called),
then the link layout algorithm is performed on the contents of this graph.
Parameter | Type | Description |
---|
recursive | boolean | boolean: If true, the graph layout is executed recursively on all Subgraphs contained in this Graph.
If false, the graph layout is executed only on this Graph. |
Determines if an animation must be displayed after a graph layout has been performed.
Parameter | Type | Description |
---|
animated | boolean: | If true, an animation moves the nodes and reshapes the links from their position/shape
before the layout to their position/shape after the layout. |
Determines if fitToContents is called after a graph layout is performed.
Parameter | Type | Description |
---|
autoFit | boolean: | If true, fitToContents() is automatically called to show all the graph after a graph layout is performed. |
Determines if the link layout must be executed automatically
whenever the graph changes.
Parameter | Type | Description |
---|
automatic | boolean: | If true, the link layout will be executed automatically whenever the graph changes.
If false, the link layout must be executed by calling performGraphLayout explicitly. |
Determines if the graph layout must be executed automatically
whenever the graph changes.
Parameter | Type | Description |
---|
automatic | boolean: | If true, the graph layout will be executed automatically whenever the graph changes.
If false, the graph layout must be executed by calling performGraphLayout explicitly. |
Sets the link layout algorithm that will be executed on the contents of this graph
when performGraphLayout is called.
Parameter | Type | Description |
---|
layout | ibm_ilog.graphlayout.GraphLayout | ibm_ilog.graphlayout.GraphLayout: The link layout algorithm that will be executed on the contents of this graph
when performGraphLayout is called. |
If the link layout is active, it will be performed when performGraphLayout() is called.
For example, you can call setLinkLayoutActive(false) if you want to perform only a graph layout.
Parameter | Type | Description |
---|
active | boolean: | True to activate the link layout, false to deactivate it. |
Sets the graph layout algorithm that will be executed on the contents of this graph
when performGraphLayout is called.
Parameter | Type | Description |
---|
layout | ibm_ilog.graphlayout.GraphLayout | ibm_ilog.graphlayout.GraphLayout: The graph layout algorithm that will be executed on the contents of this graph
when performGraphLayout is called. |
If the graph layout is active, it will be performed when performGraphLayout() is called.
For example, you can call setNodeLayoutActive(false) if you want to perform only a link layout.
Parameter | Type | Description |
---|
active | boolean: | True to activate the graph layout, false to deactivate it. |
Events
Called on each step of the graph layout animation, if isAnimatedGraphLayout() is true.
Parameter | Type | Description |
---|
v | number: | A value between 0 and 100 specifying the progress of the animation. |
Called when the graph layout animation ends, if isAnimatedGraphLayout() is true.
Called when the graph layout animation starts, if isAnimatedGraphLayout() is true.