Class JRDesignItemLabel
java.lang.Object
net.sf.jasperreports.charts.base.JRBaseItemLabel
net.sf.jasperreports.charts.design.JRDesignItemLabel
- All Implemented Interfaces:
Serializable
,Cloneable
,JRItemLabel
,JRChangeEventsSupport
,JRCloneable
An object that specifies how an item label should be displayed. Used with
category plots such as a bar or pie plot.
- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsFields inherited from class net.sf.jasperreports.charts.base.JRBaseItemLabel
backgroundColor, chart, color, font
-
Constructor Summary
ConstructorsConstructorDescriptionJRDesignItemLabel
(JRItemLabel itemLabel, JRChart chart) Constructs a new item label that is a copy of an existing one. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns the property change support object for this instance.void
setBackgroundColor
(Color backgroundColor) Sets the background color to use when displaying the value.void
Sets the color to use when displaying the value.void
Sets the font to use when displaying the value.Methods inherited from class net.sf.jasperreports.charts.base.JRBaseItemLabel
clone, collectExpressions, getBackgroundColor, getChart, getColor, getFont
-
Field Details
-
PROPERTY_COLOR
- See Also:
-
PROPERTY_BACKGROUND_COLOR
- See Also:
-
PROPERTY_FONT
- See Also:
-
-
Constructor Details
-
JRDesignItemLabel
Constructs a new item label that is a copy of an existing one.- Parameters:
itemLabel
- the item label to copy
-
-
Method Details
-
setColor
Sets the color to use when displaying the value.- Parameters:
color
- the color to use when displaying the value
-
setBackgroundColor
Sets the background color to use when displaying the value.- Parameters:
backgroundColor
- the background color to use when displaying the value
-
setFont
Sets the font to use when displaying the value.- Parameters:
font
- the font to use when displaying the value
-
clone
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classJRBaseItemLabel
-
getEventSupport
Description copied from interface:JRChangeEventsSupport
Returns the property change support object for this instance.- Specified by:
getEventSupport
in interfaceJRChangeEventsSupport
- Returns:
- the property change support object for this instance
-