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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionJRBaseItemLabel(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 SummaryModifier 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
- 
colorThe item label text color.
- 
backgroundColorThe item label background color.
- 
fontThe item label text font.
 
- 
- 
Constructor Details- 
JRBaseItemLabelConstructs a copy of an existing item label specification.- Parameters:
- itemLabel- the item label object to copy
- chart- the parent chart
 
- 
JRBaseItemLabelConstructs 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 copy
- factory- the factory object to register expressions with
 
 
- 
- 
Method Details- 
getChart- Specified by:
- getChartin interface- JRItemLabel
- Returns:
- the chart the current item label belongs to.
 
- 
getColor- Specified by:
- getColorin interface- JRItemLabel
- Returns:
- the item label text color
 
- 
getBackgroundColor- Specified by:
- getBackgroundColorin interface- JRItemLabel
- Returns:
- the item label background color
 
- 
getFont- Specified by:
- getFontin interface- JRItemLabel
- Returns:
- the item label font. Allows full font customization for the item label.
 
- 
collectExpressionsAdds 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 interface- JRCloneable
- Overrides:
- clonein class- Object
 
- 
cloneDescription copied from interface:JRItemLabelReturns the item label formatting mask. The mask will be specified using the patterns defined injava.text.DecimalFormat.- Specified by:
- clonein interface- JRItemLabel
- Returns:
- the item label formatting mask
 
 
-