Package net.sf.jasperreports.charts.fill
Class JRFillTimePeriodSeries
- java.lang.Object
-
- net.sf.jasperreports.charts.fill.JRFillTimePeriodSeries
-
- All Implemented Interfaces:
Cloneable,JRTimePeriodSeries,JRCloneable
public class JRFillTimePeriodSeries extends Object implements JRTimePeriodSeries
- Author:
- Flavius Sana (flavius_sana@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description protected JRTimePeriodSeriesparent
-
Constructor Summary
Constructors Constructor Description JRFillTimePeriodSeries(JRTimePeriodSeries timePeriodSeries, JRFillObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()protected voidevaluate(JRCalculator calculator)protected voidevaluateItemHyperlink(JRCalculator calculator)protected DategetEndDate()JRExpressiongetEndDateExpression()JRHyperlinkgetItemHyperlink()Returns the hyperlink specification for chart items.protected StringgetLabel()JRExpressiongetLabelExpression()JRPrintHyperlinkgetPrintItemHyperlink()protected Comparable<?>getSeries()JRExpressiongetSeriesExpression()protected DategetStartDate()JRExpressiongetStartDateExpression()protected NumbergetValue()JRExpressiongetValueExpression()booleanhasItemHyperlink()
-
-
-
Field Detail
-
parent
protected JRTimePeriodSeries parent
-
-
Constructor Detail
-
JRFillTimePeriodSeries
public JRFillTimePeriodSeries(JRTimePeriodSeries timePeriodSeries, JRFillObjectFactory factory)
-
-
Method Detail
-
getSeriesExpression
public JRExpression getSeriesExpression()
- Specified by:
getSeriesExpressionin interfaceJRTimePeriodSeries- Returns:
- a
java.lang.Comparableobject that identifies each series.
-
getStartDateExpression
public JRExpression getStartDateExpression()
- Specified by:
getStartDateExpressionin interfaceJRTimePeriodSeries- Returns:
- a
java.util.Dateexpression representing the start of the time period
-
getEndDateExpression
public JRExpression getEndDateExpression()
- Specified by:
getEndDateExpressionin interfaceJRTimePeriodSeries- Returns:
- a
java.util.Dateexpression representing the end of the time period
-
getValueExpression
public JRExpression getValueExpression()
- Specified by:
getValueExpressionin interfaceJRTimePeriodSeries- Returns:
- a numeric expression representing the value associated with the time period.
-
getLabelExpression
public JRExpression getLabelExpression()
- Specified by:
getLabelExpressionin interfaceJRTimePeriodSeries- Returns:
- the label expression. If present, its values will be used to customize item labels in the resulting chart.
-
getSeries
protected Comparable<?> getSeries()
-
getStartDate
protected Date getStartDate()
-
getEndDate
protected Date getEndDate()
-
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:JRTimePeriodSeriesReturns 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 interfaceJRTimePeriodSeries- 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
-
-