|
Incompatibilities
General Changes
Library Changes
Changes in CSS
Changes in the Workflow Modeler
Examples Changes
In addition, the values of enumerated properties can be specified using the names of the static final member variables of the IlvGraphLayout objects.
These changes make it much easier to find out the valid property values from the JViews Reference Manual.
These modifications have an impact on the SDM style sheet files (CSS files) that contain declarations affecting the properties of graph layout objects. For example, the following style sheet was correct in JViews 4.0, but will cause a warning message to be printed in JViews 5.0:
//-----------------------------------------------
// JViews 4.0 syntax for graph layout properties:
//-----------------------------------------------
SDM {
GraphLayout : "Hierarchical";
LinkLayout : "true";
}
GraphLayout {
FlowDirection : "Bottom";
GlobalLinkStyle : "Orthogonal links";
}
LinkLayout {
LinkOffset : "5";
}
This style sheet must be modified to work with JViews 5.0, as follows:
//-----------------------------------------------
// JViews 5.0 syntax for graph layout properties:
//-----------------------------------------------
SDM {
GraphLayout : "Hierarchical";
LinkLayout : "true";
}
GraphLayout {
flowDirection : "Bottom";
globalLinkStyle : "ORTHOGONAL_STYLE";
}
LinkLayout {
linkOffset : "5";
}
Note the following changes:
To ease the transition from JViews 4.0, JViews 5.0 automatically translates old-style (capitalized) property names into new-style (lower-case) property names, and a warning message is printed. In future versions of JViews, this convenience will be removed, so we recommend that you modify your style sheets as soon as possible.
This change should be transparent to most applications, since the behavior and the API of the new class IlvSubGraphRenderer are the same as those of the previous implementation, IlvExpandCollapseRenderer. However, applications that rely on the implementation details of the JViews 4.0 expand/collapse mechanism will have to be modified. For example, if an application assumes that all the graphic objects are in the same manager, this is no longer true in JViews 5.0, since each subgraph is implemented as a separate submanager.
If your application relies on the old expand/collapse implementation, you can still use the JViews 4.0 class IlvExpandCollapseRenderer by specifying the compatibility option ExpandCollapse40 in your style sheet, instead of ExpandCollapse, as follows:
SDM {
ExpandCollapse40 : "true";
}
Note that, for best performance, we recommend that you migrate your application to use the new implementation.
This new implementation takes advantage of all the optimizations done in the Graphics Framework for submanagers. In particular, expanding and collapsing subgraphs is now much faster for large graphs, and the layout algorithms take the subgraphs into account more efficiently.
The ExpandCollapse declaration in the SDM style sheet now creates
an instance of IlvSubGraphRenderer,
which has the same API as the previous implementation IlvExpandCollapseRenderer,
so most applications should work correctly without any modifications.
The LabelLayout renderer is specially tailored to arrange the labels of IlvGeneralNode and IlvGeneralLink objects.
This new feature is available in the Workflow Modeler application.
ilog.views.sdm.renderer.graphlayout.IlvLabelLayoutRenderer
The class IlvLabelLayoutRenderer is a filtering renderer that applies an "annealing" label layout algorithm to the labels of a graph.ilog.views.sdm.renderer.IlvSubGraphRenderer
The class IlvSubGraphRenderer is a filtering renderer that displays subgraphs of the SDM data model as submanagers, that is, IlvGrapher objects added as graphic objects in the parent IlvGrapher.ilog.views.sdm.graphic.IlvPaint
A bean to handle Color, GradientPaint, or IlvTexture, which is compatible with SDM style sheets.ilog.views.sdm.graphic.IlvBasicStroke
A bean to handle java.awt.BasicStroke, which is compatible with SDM style sheets.Modified Classes
ilog.views.sdm.graphic.IlvGeneralNode
ilog.views.sdm.graphic.IlvGeneralLink
New Workflow Monitoring Example