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 JRTimePeriodSeries
parent
-
Constructor Summary
Constructors Constructor Description JRFillTimePeriodSeries(JRTimePeriodSeries timePeriodSeries, ChartsFillObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
protected void
evaluate(JRCalculator calculator)
protected void
evaluateItemHyperlink(JRCalculator calculator)
protected Date
getEndDate()
JRExpression
getEndDateExpression()
JRHyperlink
getItemHyperlink()
Returns the hyperlink specification for chart items.protected String
getLabel()
JRExpression
getLabelExpression()
JRPrintHyperlink
getPrintItemHyperlink()
protected Comparable<?>
getSeries()
JRExpression
getSeriesExpression()
protected Date
getStartDate()
JRExpression
getStartDateExpression()
protected Number
getValue()
JRExpression
getValueExpression()
boolean
hasItemHyperlink()
-
-
-
Field Detail
-
parent
protected JRTimePeriodSeries parent
-
-
Constructor Detail
-
JRFillTimePeriodSeries
public JRFillTimePeriodSeries(JRTimePeriodSeries timePeriodSeries, ChartsFillObjectFactory factory)
-
-
Method Detail
-
getSeriesExpression
public JRExpression getSeriesExpression()
- Specified by:
getSeriesExpression
in interfaceJRTimePeriodSeries
- Returns:
- a
java.lang.Comparable
object that identifies each series.
-
getStartDateExpression
public JRExpression getStartDateExpression()
- Specified by:
getStartDateExpression
in interfaceJRTimePeriodSeries
- Returns:
- a
java.util.Date
expression representing the start of the time period
-
getEndDateExpression
public JRExpression getEndDateExpression()
- Specified by:
getEndDateExpression
in interfaceJRTimePeriodSeries
- Returns:
- a
java.util.Date
expression representing the end of the time period
-
getValueExpression
public JRExpression getValueExpression()
- Specified by:
getValueExpression
in interfaceJRTimePeriodSeries
- Returns:
- a numeric expression representing the value associated with the time period.
-
getLabelExpression
public JRExpression getLabelExpression()
- Specified by:
getLabelExpression
in 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:JRTimePeriodSeries
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 interfaceJRTimePeriodSeries
- Returns:
- hyperlink specification for chart items
-
hasItemHyperlink
public boolean hasItemHyperlink()
-
getPrintItemHyperlink
public JRPrintHyperlink getPrintItemHyperlink()
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
-