The
LabelLayout
renderer performs a label layout algorithm. It is useful when the
graphic objects that represent the data model have labels and you
want to minimize the overlap of these labels with other labels or
other graphic objects. The algorithm will try to move the labels
around their original position (for node labels) or along their
link (for link labels) to minimize the overlaps.
The
LabelLayout
renderer uses the classes of the package ilog.views.graphlayout.labellayout, available
since Rogue Wave JViews 5.0. The label layout algorithm applied is
the "simulated annealing" algorithm.
The following table lists the properties of the
LabelLayout
renderer.
Global properties of the LabelLayout
renderer
Property
|
Type
|
Default
|
Description
|
---|---|---|---|
enabled
|
boolean
|
true
|
Enables/disables the label layout
algorithm.
|
layoutOfGeneralLinkLabelsEnabled
|
boolean
|
true
|
If
true
, the labels of
IlvGeneralLink
objects will be laid out. If
false
, general link labels are left unchanged.
|
layoutOfGeneralNodeLabelsEnabled
|
boolean
|
true
|
If
true
, the labels of
IlvGeneralNode
objects will be laid out. If
false
, general node labels are left unchanged.
|
The
LabelLayout
renderer does not have any per-object rendering properties.
You can set any property of the IlvAnnealingLabelLayout object used by this
renderer.
See the class IlvLabelLayoutRenderer for more details.