label
property controls
the string displayed by the node’s label.""
)
if you do not want to display any label on the node.\n
’)
characters in the value of the label
property
to separate the lines.labelAlignment
, which can take
the values Left
(left-aligned), Center
(centered),
or Right
(right-aligned).lineSpacing
.labelPosition
property
controls the placement of the label relative to the shape. This property
can take the values defined by the interface IlvDirection. For example, setting labelPosition
to Top
places
the label above the shape. Center
places
the label inside the shape. The default position is Bottom
..labelSpacing
.labelMode
property
is set to WORD_WRAP
, the label is automatically
cut into several lines to fit into the width of the shape.wordWrapChars
.
In autowrap mode, the new line characters contained in the label are
ignored.labelMargin
controls
the margin to leave between the border of the shape and the label
when word wrapping is active:labelMode
property
is set to TRUNCATE
, the label is automatically
truncated to fit into the width of the shape. This is different from
autowrap mode: the label is not cut into several lines, but simply
truncated, and the truncated label always has a single line.labelMargin
controls
the margin to leave between the border of the shape and the (truncated)
label, as in WORD_WRAP
mode....
"
(You can change this suffix using the method setTruncatedLabelSuffix
. labelZoomable
property
is set to "true"
, the label grows when
the view is zoomed in and shrinks when the view is zoomed out. If
the labelZoomable
property is set to "false"
,
the label size stays constant.minLabelZoom
specifies
the minimum zoom level past which the label will no longer be visible
when zooming out. The property maxLabelZoom
specifies
the maximum zoom level past which the label will no longer be visible
when zooming in.labelScaleFactor
lets
you apply a scale factor to the label.labelFont
and labelColor
control
the font and color of the label.labelAntialiasing
determines
whether the label should be drawn using antialiasing or not.