ar.com.fdvs.dj.domain.chart.dataset
Class CategoryDataset

java.lang.Object
  extended by ar.com.fdvs.dj.domain.DJBaseElement
      extended by ar.com.fdvs.dj.domain.chart.dataset.AbstractDataset
          extended by ar.com.fdvs.dj.domain.chart.dataset.CategoryDataset
All Implemented Interfaces:
Entity, java.io.Serializable

public class CategoryDataset
extends AbstractDataset

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface ar.com.fdvs.dj.domain.entities.Entity
SERIAL_VERSION_UID
 
Constructor Summary
CategoryDataset()
           
 
Method Summary
 void addSerie(AbstractColumn column)
          Adds the specified serie column to the dataset.
 void addSerie(AbstractColumn column, java.lang.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.
 java.util.List getColumns()
           
 PropertyColumn getColumnsGroup()
           
 java.util.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, java.lang.String name, net.sf.jasperreports.engine.design.JRDesignGroup group, net.sf.jasperreports.engine.design.JRDesignGroup parentGroup, java.util.Map vars)
           
 
Methods inherited from class ar.com.fdvs.dj.domain.chart.dataset.AbstractDataset
getExpressionFromVariable, setResetStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryDataset

public CategoryDataset()
Method Detail

setCategory

public void setCategory(PropertyColumn category)
Sets the category column.

Parameters:
category - the category column

getCategory

public PropertyColumn getCategory()
Returns the category column.

Returns:
the category column

addSerie

public void addSerie(AbstractColumn column)
Adds the specified serie column to the dataset.

Specified by:
addSerie in class AbstractDataset
Parameters:
column - the serie column

addSerie

public void addSerie(AbstractColumn column,
                     java.lang.String label)
Adds the specified serie column to the dataset with custom label.

Parameters:
column - the serie column
label - column the custom label

addSerie

public void addSerie(AbstractColumn column,
                     StringExpression labelExpression)
Adds the specified serie column to the dataset with custom label expression.

Parameters:
column - the serie column
labelExpression - column the custom label expression

removeSerie

public void removeSerie(AbstractColumn column)
Removes the specified serie column from the dataset.

Parameters:
column - the serie column

clearSeries

public void clearSeries()
Removes all defined series.


getSeries

public java.util.List getSeries()
Returns a list of all the defined series. Every entry in the list is of type AbstractColumn. If there are no defined series this method will return an empty list, not null.

Returns:
the list of series

setUseSeriesAsCategory

public void setUseSeriesAsCategory(boolean useSeriesAsCategory)

isUseSeriesAsCategory

public boolean isUseSeriesAsCategory()

transform

public net.sf.jasperreports.engine.design.JRDesignChartDataset transform(DynamicJasperDesign design,
                                                                         java.lang.String name,
                                                                         net.sf.jasperreports.engine.design.JRDesignGroup group,
                                                                         net.sf.jasperreports.engine.design.JRDesignGroup parentGroup,
                                                                         java.util.Map vars)
Specified by:
transform in class AbstractDataset

getColumns

public java.util.List getColumns()
Specified by:
getColumns in class AbstractDataset

getColumnsGroup

public PropertyColumn getColumnsGroup()
Specified by:
getColumnsGroup in class AbstractDataset


Copyright © 2006-2011 FDV Solutions. All Rights Reserved.