Package net.sf.jasperreports.charts.base
Class JRBaseTimeSeriesDataset
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseElementDataset
-
- net.sf.jasperreports.engine.base.JRBaseChartDataset
-
- net.sf.jasperreports.charts.base.JRBaseTimeSeriesDataset
-
- All Implemented Interfaces:
Serializable,Cloneable,JRTimeSeriesDataset,DatasetRunHolder,JRChangeEventsSupport,JRChartDataset,JRCloneable,JRElementDataset
public class JRBaseTimeSeriesDataset extends JRBaseChartDataset implements JRTimeSeriesDataset, JRChangeEventsSupport
- Author:
- Flavius Sana (flavius_sana@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_TIME_PERIOD-
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElementDataset
datasetResetType, datasetRun, incrementGroup, incrementTypeValue, incrementWhenExpression, resetGroup
-
Fields inherited from interface net.sf.jasperreports.engine.JRChartDataset
CATEGORY_DATASET, GANTT_DATASET, HIGHLOW_DATASET, PIE_DATASET, TIMEPERIOD_DATASET, TIMESERIES_DATASET, VALUE_DATASET, XY_DATASET, XYZ_DATASET
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJRBaseTimeSeriesDataset(JRTimeSeriesDataset dataset)JRBaseTimeSeriesDataset(JRTimeSeriesDataset dataset, JRBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Objectclone()voidcollectExpressions(JRExpressionCollector collector)bytegetDatasetType()Gets the dataset type.JRPropertyChangeSupportgetEventSupport()Returns the property change support object for this instance.JRTimeSeries[]getSeries()Class<?>getTimePeriod()Deprecated.Replaced bygetTimePeriod().TimePeriodEnumgetTimePeriodValue()voidsetTimePeriod(Class<?> timePeriod)Deprecated.Replaced bysetTimePeriod(TimePeriodEnum).voidsetTimePeriod(TimePeriodEnum timePeriodValue)voidvalidate(JRVerifier verifier)Validates the dataset using a verifier.-
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElementDataset
getDatasetResetType, getDatasetRun, getIncrementGroup, getIncrementTypeValue, getIncrementWhenExpression, getResetGroup
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.engine.JRElementDataset
getDatasetResetType, getDatasetRun, getIncrementGroup, getIncrementTypeValue, getIncrementWhenExpression, getResetGroup
-
-
-
-
Field Detail
-
PROPERTY_TIME_PERIOD
public static final String PROPERTY_TIME_PERIOD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JRBaseTimeSeriesDataset
protected JRBaseTimeSeriesDataset(JRTimeSeriesDataset dataset)
-
JRBaseTimeSeriesDataset
public JRBaseTimeSeriesDataset(JRTimeSeriesDataset dataset, JRBaseObjectFactory factory)
-
-
Method Detail
-
getSeries
public JRTimeSeries[] getSeries()
- Specified by:
getSeriesin interfaceJRTimeSeriesDataset- Returns:
- an array of
JRTimeSeriesobjects representing the series for the Time Series chart - See Also:
JRTimeSeries
-
getTimePeriod
public Class<?> getTimePeriod()
Deprecated.Replaced bygetTimePeriod().- Specified by:
getTimePeriodin interfaceJRTimeSeriesDataset
-
setTimePeriod
public void setTimePeriod(Class<?> timePeriod)
Deprecated.Replaced bysetTimePeriod(TimePeriodEnum).- Specified by:
setTimePeriodin interfaceJRTimeSeriesDataset
-
getTimePeriodValue
public TimePeriodEnum getTimePeriodValue()
- Specified by:
getTimePeriodValuein interfaceJRTimeSeriesDataset- Returns:
- the time period. Specifies the type of the data series inside the dataset. Time series can contain numeric values associated with days, months, years, or other predefined time periods.
- See Also:
TimePeriodEnum
-
setTimePeriod
public void setTimePeriod(TimePeriodEnum timePeriodValue)
- Specified by:
setTimePeriodin interfaceJRTimeSeriesDataset- Parameters:
timePeriodValue- the time period associated with days, months, years, or other predefined time periods.- See Also:
TimePeriodEnum
-
getDatasetType
public byte getDatasetType()
Description copied from interface:JRChartDatasetGets the dataset type. Must be one of the dataset type constants defined in this class.- Specified by:
getDatasetTypein interfaceJRChartDataset
-
collectExpressions
public void collectExpressions(JRExpressionCollector collector)
- Specified by:
collectExpressionsin interfaceJRElementDataset- Overrides:
collectExpressionsin classJRBaseElementDataset
-
validate
public void validate(JRVerifier verifier)
Description copied from interface:JRChartDatasetValidates the dataset using a verifier.Broken rules are collected by the verifier.
- Specified by:
validatein interfaceJRChartDataset- Parameters:
verifier- the verifier to use for validation
-
clone
public Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classJRBaseElementDataset
-
getEventSupport
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-
-