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, setResetStylepublic void setCategory(PropertyColumn category)
category - the category columnpublic PropertyColumn getCategory()
public void addSerie(AbstractColumn column)
addSerie in class AbstractDatasetcolumn - 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 AbstractDatasetpublic List getColumns()
getColumns in class AbstractDatasetpublic PropertyColumn getColumnsGroup()
getColumnsGroup in class AbstractDatasetCopyright © 2006–2015 FDV Solutions. All rights reserved.