ilog.views.graphlayout.IlvGrapherAdapter
- Overview of new features:
- A mechanism to store graph layout parameters via the grapher adapter
into named properties (for example, to save to IVL files).
- Performs optional checks of the links and link connectors. The method
reshapeLink now throws inappropriate link exceptions.
- New methods:
- prepareGrapher:
Performs initialization of the IlvGrapher.
- prepareViewForAnimation:
Performs initialization of the IlvManagerView in
animated layouts.
- redrawAfterLayout:
Redraws the IlvGrapher once the layout has finished.
- get/setAnimationRedrawMode:
Returns/sets the redraw mode used during animations inside the layout.
- isReshapeableLink:
Returns true if the input
link can be reshaped.
- hasMoveableConnectionPoint:
Returns true if the connection
points of the input link can be moved.
- saveParametersToNamedProperties:
Saves the layout parameters into named properties that can be stored
into IVL files.
- loadParametersFromNamedProperties:
Loads the layout parameters from the names properties.
- removeParametersFromNamedProperties:
Removes the named properties used for the layout parameters.
- Modified methods:
- beforeLayout:
The callbacks prepareGrapher and prepareViewForAnimation
are now called if appropriate.
- afterLayout:
The callback redrawAfterLayout is called.
- reshapeLink:
Now throws an IlvInappropriateLinkException if inappropriate
links or link connectors are found and the checks are enabled.
ilog.views.graphlayout.IlvRelativeLinkConnector
- Overview of new features:
- The link connector is now persistent, that is, it can be saved in IVL files.
- New methods:
- IlvRelativeLinkConnector(IlvInputStream):
Constructor used when reading the object from an IVL file.
- isPersistent:
Tests if the link connector must be saved in the IVL file.
- write:
Writes the object.
- read:
Reads information associated with a link.
ilog.views.graphlayout.bus.IlvBusLayout
- Overview of new features:
- It is possible to specify the flow direction of the nodes.
- It is possible to specify the vertical alignment of the nodes,
either globally, or individually per node.
- An incremental mode is added. In incremental mode, the stability of the
layout is preserved as much as possible when new nodes are added,
existing ones removed, or node sizes modified.
- Due to the generic layout of connected components, this algorithm
can now be applied to a disconnected graph.
- The class can store its layout parameters into named properties
that can be saved to IVL files.
- New fields:
- CENTER,
TOP,
BOTTOM,
MIXED:
Valid arguments for the methods
setGlobalVerticalAlignment and
setVerticalAlignment.
- LEFT_TO_RIGHT,
ALTERNATE:
Valid arguments for the method
setFlowDirection.
- New methods:
- get/setFlowDirection:
Returns/sets the flow direction of the nodes.
- get/setGlobalVerticalAlignment:
Returns/sets the vertical alignment option for all nodes.
- get/setVerticalAlignment:
Returns/sets the vertical alignment option for an individual node.
- is/setIncrementalMode:
Returns/sets whether the incremental mode is enabled.
- supportsLayoutOfConnectedComponents:
Returns true.
The layout can utilize the generic mechanism to cut the graph into
connected components and lay out each component separately.
- supportsStopImmediately:
Returns true.
The layout is able to interrupt the current run of the layout immediately
in a controlled way.
- supportsSaveParametersToNamedProperties:
Returns true.
The layout is able to save the layout parameters to named properties.
- createLayoutGrapherProperty:
Overrides the base class method;
returns a new instance of a named property suitable to store
global layout parameters for bus layout.
- createLayoutNodeProperty:
Overrides the base class method;
returns a new instance of a named property suitable to store
bus layout parameters of a node.
- Modified methods:
- getBus:
The method no longer automatically installs the link connector.
If appropriate, this is done when the layout is performed.
ilog.views.graphlayout.bus.IlvBusLinkConnector
- Overview of new features:
- The link connector is now persistent, that is, it can be saved in IVL files.
- New methods:
- IlvBusLinkConnector(IlvInputStream):
Constructor used when reading the object from an IVL file.
- isPersistent:
Tests if the link connector must be saved in the IVL file.
- write:
Writes the object.
- read:
Reads information associated with a link.
ilog.views.graphlayout.circular.IlvCircularLayout
- Overview of new features:
- The algorithm supports the generic connected component layout
mechanism.
- The class can store its layout parameters into named properties
that can be saved to IVL files.
- New methods:
- supportsLayoutOfConnectedComponents:
Returns true.
The layout can utilize the generic mechanism to cut the graph into
connected components and layout each component separately.
- supportsSaveParametersToNamedProperties:
Returns true.
The layout is able to save the layout parameters to named properties.
- createLayoutGrapherProperty:
Overrides the base class method;
returns a new instance of a named property suitable to store
global layout parameters for circular layout.
- createLayoutNodeProperty:
Overrides the base class method;
returns a new instance of a named property suitable to store
circular layout parameters of a node.
ilog.views.graphlayout.hierarchical.IlvHierarchicalLayout
- Overview of new features:
- It is possible to specify relative ports at all four sides of the node.
It is also possible to specify the attachment sides of each individual
link without specifying relative port numbers.
- The layout optionally respects the width of links, if the connector
style is EVENLY_SPACED_PINS.
This is useful for graphs where the width of individual links
differ a lot, for example, to show costs or capacities of data by the link
width.
- The link routing has improved. In particular, links that start at
very small nodes no longer cross neighbored large nodes.
- The algorithm optionally supports the generic connected component layout
mechanism so that each component gets its own local level structure.
Furthermore, it has its own specialized mechanism to lay out
disconnected graphs by fitting all components into the same global level
structure.
- The class can store its layout parameters into named properties
that can be saved to IVL files.
- New fields:
- EAST,
WEST,
NORTH,
SOUTH,
UNSPECIFIED:
Valid arguments for the methods
setFromPortSide and
setToPortSide.
- New methods:
- is/setLinkWidthUsed:
Returns/sets whether the layout respects the width of links.
- get/setMinStartSegmentLength:
Returns/sets the minimum length of the first segment of each link.
- get/setMinEndSegmentLength:
Returns/sets the minimum length of the last segment of each link.
- get/setFromPortIndex:
Returns/sets the index of the relative port where the link should connect
to the source node (the "from" node).
- get/setToPortIndex:
Returns/sets the index of the relative port where the link should connect
to the destination node (the "to" node).
- get/setFromPortSide:
Returns/sets the node side where the link should connect
to the source node (the "from" node).
- get/setToPortSide:
Returns/sets the node side where the link should connect
to the destination node (the "to" node).
- get/setNumberOfPorts:
Returns/sets the specified number of relative ports at a given side of
a node.
- supportsLayoutOfConnectedComponents:
Returns true.
The layout can utilize the generic mechanism to cut the graph into
connected components and lay out each component separately.
- supportsPercentageComplete:
Returns true.
The layout is able to determine the proper percentage of completion
during the run of the layout.
- supportsStopImmediately:
Returns true.
The layout is able to interrupt the current run of the layout immediately
in a controlled way.
- supportsSaveParametersToNamedProperties:
Returns true.
The layout is able to save the layout parameters to named properties.
- createLayoutGrapherProperty:
Overrides the base class method;
returns a new instance of a named property suitable to store
global layout parameters for hierarchical layout.
- createLayoutNodeProperty:
Overrides the base class method;
returns a new instance of a named property suitable to store
hierarchical layout parameters of a node.
- createLayoutLinkProperty:
Overrides the base class method;
returns a new instance of a named property suitable to store
hierarchical layout parameters of a link.
ilog.views.graphlayout.orthogonal.IlvOrthogonalLinkLayout
The class IlvOrthogonalLinkLayout
has been deprecated.
The classes IlvLinkLayout
or IlvShortLinkLayout
or IlvLongLinkLayout
can be used instead.
The old IlvOrthogonalLinkLayout
corresponds to
the class IlvShortLinkLayout,
which is used in
layout mode SHORT_LINKS
by the class IlvLinkLayout. Note that
the auto layout mode, for automatic refresh when the graph is modified (see the method
setAutoLayout), is disabled by default
for the new classes.