public class CategoryDataset extends AbstractDataset
SERIAL_VERSION_UID
Constructor and Description |
---|
CategoryDataset() |
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.
|
PropertyColumn |
getCategory()
Returns the category column.
|
List |
getColumns() |
PropertyColumn |
getColumnsGroup() |
List |
getSeries()
Returns a list of all the defined series.
|
boolean |
isUseSeriesAsCategory() |
void |
removeSerie(AbstractColumn column)
Removes the specified serie column from the dataset.
|
void |
setCategory(PropertyColumn category)
Sets the category column.
|
void |
setUseSeriesAsCategory(boolean useSeriesAsCategory) |
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 void setCategory(PropertyColumn category)
category
- the category columnpublic PropertyColumn getCategory()
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 setUseSeriesAsCategory(boolean useSeriesAsCategory)
public boolean isUseSeriesAsCategory()
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.