public class TimeSeriesDataset extends AbstractDataset
Modifier and Type | Field and Description |
---|---|
static Class |
DAY |
static Class |
HOUR |
static Class |
MILLISECOND |
static Class |
MINUTE |
static Class |
MONTH |
static Class |
QUARTER |
static Class |
SECOND |
static Class |
WEEK |
static Class |
YEAR |
SERIAL_VERSION_UID
Constructor and Description |
---|
TimeSeriesDataset() |
Modifier and Type | Method and Description |
---|---|
void |
addSerie(AbstractColumn column)
Adds the specified serie column to the dataset.
|
void |
addSerie(AbstractColumn column,
String label)
Adds the specified serie column to the dataset with custom label.
|
void |
addSerie(AbstractColumn column,
StringExpression labelExpression)
Adds the specified serie column to the dataset with custom label expression.
|
void |
clearSeries()
Removes all defined series.
|
List |
getColumns() |
PropertyColumn |
getColumnsGroup() |
List |
getSeries()
Returns a list of all the defined series.
|
PropertyColumn |
getTimePeriod()
Returns the time period column.
|
Class |
getTimePeriodClass()
Gets the time period class (YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND).
|
void |
removeSerie(AbstractColumn column)
Removes the specified serie column from the dataset.
|
void |
setTimePeriod(PropertyColumn timePeriod)
Sets the time period column.
|
void |
setTimePeriodClass(Class timePeriodClass)
Sets the time period class (YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND).
|
net.sf.jasperreports.engine.design.JRDesignChartDataset |
transform(DynamicJasperDesign design,
String name,
net.sf.jasperreports.engine.design.JRDesignGroup group,
net.sf.jasperreports.engine.design.JRDesignGroup parentGroup,
Map vars) |
getExpressionFromVariable, setResetStyle
public static final Class YEAR
public static final Class QUARTER
public static final Class MONTH
public static final Class WEEK
public static final Class DAY
public static final Class HOUR
public static final Class MINUTE
public static final Class SECOND
public static final Class MILLISECOND
public void setTimePeriod(PropertyColumn timePeriod)
timePeriod
- the time period columnpublic PropertyColumn getTimePeriod()
public void addSerie(AbstractColumn column)
addSerie
in class AbstractDataset
column
- the serie columnpublic void addSerie(AbstractColumn column, String label)
column
- the serie columnlabel
- column the custom labelpublic void addSerie(AbstractColumn column, StringExpression labelExpression)
column
- the serie columnlabelExpression
- column the custom label expressionpublic void removeSerie(AbstractColumn column)
column
- the serie columnpublic void clearSeries()
public List getSeries()
public void setTimePeriodClass(Class timePeriodClass)
timePeriodClass
- one of the time period class constants in this classpublic Class getTimePeriodClass()
public net.sf.jasperreports.engine.design.JRDesignChartDataset transform(DynamicJasperDesign design, String name, net.sf.jasperreports.engine.design.JRDesignGroup group, net.sf.jasperreports.engine.design.JRDesignGroup parentGroup, Map vars)
transform
in class AbstractDataset
public List getColumns()
getColumns
in class AbstractDataset
public PropertyColumn getColumnsGroup()
getColumnsGroup
in class AbstractDataset
Copyright © 2006–2015 FDV Solutions. All rights reserved.