Package net.sf.jasperreports.charts.base
Class JRBaseItemLabel
java.lang.Object
net.sf.jasperreports.charts.base.JRBaseItemLabel
- All Implemented Interfaces:
Serializable,Cloneable,JRItemLabel,JRCloneable
- Direct Known Subclasses:
JRDesignItemLabel
An immutable representation of the formatting options for showing the
item labels in a category plot.
- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJRBaseItemLabel(JRItemLabel itemLabel, ChartsBaseObjectFactory factory) Constructs a copy of an existing item label specification and registers any expression in the new copy with the specified factory.JRBaseItemLabel(JRItemLabel itemLabel, JRChart chart) Constructs a copy of an existing item label specification. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns the item label formatting mask.voidcollectExpressions(JRExpressionCollector collector) Adds all the expression used by this plot with the specified collector.getChart()getColor()getFont()
-
Field Details
-
chart
-
color
The item label text color. -
backgroundColor
The item label background color. -
font
The item label text font.
-
-
Constructor Details
-
JRBaseItemLabel
Constructs a copy of an existing item label specification.- Parameters:
itemLabel- the item label object to copychart- the parent chart
-
JRBaseItemLabel
Constructs a copy of an existing item label specification and registers any expression in the new copy with the specified factory.- Parameters:
itemLabel- the item label object to copyfactory- the factory object to register expressions with
-
-
Method Details
-
getChart
- Specified by:
getChartin interfaceJRItemLabel- Returns:
- the chart the current item label belongs to.
-
getColor
- Specified by:
getColorin interfaceJRItemLabel- Returns:
- the item label text color
-
getBackgroundColor
- Specified by:
getBackgroundColorin interfaceJRItemLabel- Returns:
- the item label background color
-
getFont
- Specified by:
getFontin interfaceJRItemLabel- Returns:
- the item label font. Allows full font customization for the item label.
-
collectExpressions
Adds all the expression used by this plot with the specified collector. All collected expression that are also registered with a factory will be included with the report is compiled.- Parameters:
collector- the expression collector to use
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
clone
Description copied from interface:JRItemLabelReturns the item label formatting mask. The mask will be specified using the patterns defined injava.text.DecimalFormat.- Specified by:
clonein interfaceJRItemLabel- Returns:
- the item label formatting mask
-