Package net.sf.jasperreports.charts.fill
Class JRFillTimeSeries
- java.lang.Object
-
- net.sf.jasperreports.charts.fill.JRFillTimeSeries
-
- All Implemented Interfaces:
Cloneable,JRTimeSeries,JRCloneable
public class JRFillTimeSeries extends Object implements JRTimeSeries
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description protected JRTimeSeriesparent
-
Constructor Summary
Constructors Constructor Description JRFillTimeSeries(JRTimeSeries timeSeries, JRFillObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()protected voidevaluate(JRCalculator calculator)protected voidevaluateItemHyperlink(JRCalculator calculator)JRHyperlinkgetItemHyperlink()Returns the hyperlink specification for chart items.protected StringgetLabel()JRExpressiongetLabelExpression()JRPrintHyperlinkgetPrintItemHyperlink()protected Comparable<?>getSeries()JRExpressiongetSeriesExpression()protected DategetTimePeriod()JRExpressiongetTimePeriodExpression()protected NumbergetValue()JRExpressiongetValueExpression()booleanhasItemHyperlink()
-
-
-
Field Detail
-
parent
protected JRTimeSeries parent
-
-
Constructor Detail
-
JRFillTimeSeries
public JRFillTimeSeries(JRTimeSeries timeSeries, JRFillObjectFactory factory)
-
-
Method Detail
-
getSeriesExpression
public JRExpression getSeriesExpression()
- Specified by:
getSeriesExpressionin interfaceJRTimeSeries- Returns:
- a
java.lang.Comparableobject 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:
getTimePeriodExpressionin interfaceJRTimeSeries- Returns:
- a
java.util.Dateexpression from which the engine will extract the corresponding time period depending on the value set for thetimePeriodattribute. - See Also:
JRTimeSeriesDataset.getTimePeriodValue()
-
getValueExpression
public JRExpression getValueExpression()
- Specified by:
getValueExpressionin 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:
getLabelExpressionin interfaceJRTimeSeries- Returns:
- the label expression. If present, it helps customize the item labels inside charts.
-
getSeries
protected Comparable<?> getSeries()
-
getTimePeriod
protected Date getTimePeriod()
-
getValue
protected Number getValue()
-
getLabel
protected String getLabel()
-
evaluate
protected void evaluate(JRCalculator calculator) throws JRExpressionEvalException
- Throws:
JRExpressionEvalException
-
evaluateItemHyperlink
protected void evaluateItemHyperlink(JRCalculator calculator) throws JRExpressionEvalException
- Throws:
JRExpressionEvalException
-
getItemHyperlink
public JRHyperlink getItemHyperlink()
Description copied from interface:JRTimeSeriesReturns 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:
getItemHyperlinkin interfaceJRTimeSeries- Returns:
- hyperlink specification for chart items
-
hasItemHyperlink
public boolean hasItemHyperlink()
-
getPrintItemHyperlink
public JRPrintHyperlink getPrintItemHyperlink()
-
clone
public Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
-