public class IlvLabelRenderer
extends java.lang.Object
ilvLabelRenderer {
class : "ilog.views.chart.IlvLabelRenderer";
alignment : "2";
autoWrapping : "false";
background : "green";
backgroundPaint : "#000000";
border : "@#emptyBorder";
caching : "false";
color : "green";
font : "sansserif-BOLD-8";
opaque : "false";
outline : "false";
rotation : "3.0";
scalingFont : "false";
wrappingWidth : "2.0";
}
Modifier and Type | Property and Description |
---|---|
int |
alignment
Specifies the label alignment. |
boolean |
autoWrapping
Toggles automatic wrapping. |
java.awt.Color |
background
Sets the label background. |
Paint |
backgroundPaint
Sets the background paint. |
Border |
border
Sets a border for this label. |
boolean |
caching
Determines whether this label renderer caches previous text layouts and bounds, for speed. |
java.lang.String |
class
Creates a new IlvLabelRenderer object with a null rotation. |
java.awt.Color |
color
Sets the label color. |
java.awt.Font |
font
Sets the label font. |
boolean |
opaque
Specifies whether the background of the label is filled. |
boolean |
outline
Specifies whether the label is drawn in outline mode. |
double |
rotation
Sets the rotation applied to the label. |
boolean |
scalingFont
Sets whether this label renderer enables the font scaling. |
float |
wrappingWidth
Sets the wrapping width. |
The alignment is only used for multiline labels. It can take the following values:
SwingConstants.LEFT
: left alignment.SwingConstants.CENTER
(default): centered alignment.SwingConstants.RIGHT
: right alignment.alignment : "2";
public boolean autoWrapping
autoWrapping : "false";
public java.awt.Color background
background : "green";
backgroundPaint
public Paint backgroundPaint
backgroundPaint : "#000000";
public Border border
border : "@#emptyBorder";
EmptyBorder
for an example of implementing a border.public boolean caching
When set to true
, this label renderer will memoize the line
breaking, text layouts and bounds of all previous settings, as far as
memory permits. This is useful when a label renderer is used to draw
or measure many labels.
When set to false
, this label renderer will memoize the line
breaking, text layouts and bounds of the last setting. This is useful when
a label renderer is used for a single label only.
The default value is true
.
CSS example:
caching : "false";
public java.awt.Color color
color : "green";
public java.awt.Font font
font : "sansserif-BOLD-8";
public boolean opaque
opaque : "false";
public boolean outline
true
, the label is surrounded by a thin shadow border,
increasing the contrast to the background.
outline : "false";
public double rotation
rotation : "3.0";
public boolean scalingFont
scalingFont
property is only used if a font has been
specified for this renderer.
scalingFont : "false";
public float wrappingWidth
wrappingWidth : "2.0";
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.