Package net.sf.jasperreports.charts.base
Class JRBaseTimeSeries
- java.lang.Object
-
- net.sf.jasperreports.charts.base.JRBaseTimeSeries
-
- All Implemented Interfaces:
Serializable
,Cloneable
,JRTimeSeries
,JRCloneable
- Direct Known Subclasses:
JRDesignTimeSeries
public class JRBaseTimeSeries extends Object implements JRTimeSeries, Serializable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JRHyperlink
itemHyperlink
protected JRExpression
labelExpression
protected JRExpression
seriesExpression
protected JRExpression
timePeriodExpression
protected JRExpression
valueExpression
-
Constructor Summary
Constructors Modifier Constructor Description protected
JRBaseTimeSeries()
JRBaseTimeSeries(JRTimeSeries timeSeries, ChartsBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
JRHyperlink
getItemHyperlink()
Returns the hyperlink specification for chart items.JRExpression
getLabelExpression()
JRExpression
getSeriesExpression()
JRExpression
getTimePeriodExpression()
JRExpression
getValueExpression()
-
-
-
Field Detail
-
seriesExpression
protected JRExpression seriesExpression
-
timePeriodExpression
protected JRExpression timePeriodExpression
-
valueExpression
protected JRExpression valueExpression
-
labelExpression
protected JRExpression labelExpression
-
itemHyperlink
protected JRHyperlink itemHyperlink
-
-
Constructor Detail
-
JRBaseTimeSeries
protected JRBaseTimeSeries()
-
JRBaseTimeSeries
public JRBaseTimeSeries(JRTimeSeries timeSeries, ChartsBaseObjectFactory factory)
-
-
Method Detail
-
getSeriesExpression
public JRExpression getSeriesExpression()
- Specified by:
getSeriesExpression
in interfaceJRTimeSeries
- Returns:
- a
java.lang.Comparable
object representing the expression of the series name. Specifies the series to which to add the current value pair when incrementing the dataset.
-
getTimePeriodExpression
public JRExpression getTimePeriodExpression()
- Specified by:
getTimePeriodExpression
in interfaceJRTimeSeries
- Returns:
- a
java.util.Date
expression from which the engine will extract the corresponding time period depending on the value set for thetimePeriod
attribute. - See Also:
JRTimeSeriesDataset.getTimePeriod()
-
getValueExpression
public JRExpression getValueExpression()
- Specified by:
getValueExpression
in interfaceJRTimeSeries
- Returns:
- a numeric expression representing the value to associate with the corresponding time period value when incrementing the current series of the dataset.
-
getLabelExpression
public JRExpression getLabelExpression()
- Specified by:
getLabelExpression
in interfaceJRTimeSeries
- Returns:
- the label expression. If present, it helps customize the item labels inside charts.
-
getItemHyperlink
public JRHyperlink getItemHyperlink()
Description copied from interface:JRTimeSeries
Returns the hyperlink specification for chart items.The hyperlink will be evaluated for every chart item and a image map will be created for the chart.
- Specified by:
getItemHyperlink
in interfaceJRTimeSeries
- Returns:
- hyperlink specification for chart items
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
-