Package net.sf.jasperreports.charts.base
Class JRBaseCategorySeries
- java.lang.Object
-
- net.sf.jasperreports.charts.base.JRBaseCategorySeries
-
- All Implemented Interfaces:
Serializable
,Cloneable
,JRCategorySeries
,JRCloneable
- Direct Known Subclasses:
JRDesignCategorySeries
public class JRBaseCategorySeries extends Object implements JRCategorySeries, Serializable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JRExpression
categoryExpression
protected JRHyperlink
itemHyperlink
protected JRExpression
labelExpression
protected JRExpression
seriesExpression
protected JRExpression
valueExpression
-
Constructor Summary
Constructors Modifier Constructor Description protected
JRBaseCategorySeries()
JRBaseCategorySeries(JRCategorySeries categorySeries, ChartsBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
JRExpression
getCategoryExpression()
JRHyperlink
getItemHyperlink()
Returns the hyperlink specification for chart items.JRExpression
getLabelExpression()
JRExpression
getSeriesExpression()
JRExpression
getValueExpression()
-
-
-
Field Detail
-
seriesExpression
protected JRExpression seriesExpression
-
categoryExpression
protected JRExpression categoryExpression
-
valueExpression
protected JRExpression valueExpression
-
labelExpression
protected JRExpression labelExpression
-
itemHyperlink
protected JRHyperlink itemHyperlink
-
-
Constructor Detail
-
JRBaseCategorySeries
protected JRBaseCategorySeries()
-
JRBaseCategorySeries
public JRBaseCategorySeries(JRCategorySeries categorySeries, ChartsBaseObjectFactory factory)
-
-
Method Detail
-
getSeriesExpression
public JRExpression getSeriesExpression()
- Specified by:
getSeriesExpression
in interfaceJRCategorySeries
- Returns:
- the expression of the series name. The value of this expression can be any
java.lang.Comparable
object.
Note that this expression may return different values with each iteration, which in turn will result in the dataset having multiple category series, even though a single<categorySeries>
tag was used inside<categoryDataset>
. However, this expression usually returns ajava.lang.String
constant, and there are several<categorySeries>
tags that introduce multiple category series in the dataset.
-
getCategoryExpression
public JRExpression getCategoryExpression()
- Specified by:
getCategoryExpression
in interfaceJRCategorySeries
- Returns:
- the expression of the name of the category for each value inside the series
specified by the series expression. Categories are
java.lang.Comparable
objects (not necessarilyjava.lang.String
objects).
-
getValueExpression
public JRExpression getValueExpression()
- Specified by:
getValueExpression
in interfaceJRCategorySeries
- Returns:
- the value expression, a
java.lang.Number
value for each category in the specified series.
-
getLabelExpression
public JRExpression getLabelExpression()
- Specified by:
getLabelExpression
in interfaceJRCategorySeries
- Returns:
- the label expression. If present, this expression allows customization of the item labels in the chart.
-
getItemHyperlink
public JRHyperlink getItemHyperlink()
Description copied from interface:JRCategorySeries
Returns the hyperlink specification for chart items.The hyperlink will be evaluated for every chart item and an image map will be created for the chart.
- Specified by:
getItemHyperlink
in interfaceJRCategorySeries
- Returns:
- hyperlink specification for chart items
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
-