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

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.PieDataset
All Implemented Interfaces:
Entity, java.io.Serializable

public class PieDataset
extends AbstractDataset

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface ar.com.fdvs.dj.domain.entities.Entity
SERIAL_VERSION_UID
 
Constructor Summary
PieDataset()
           
 
Method Summary
 void addSerie(AbstractColumn column)
          Adds the specified serie column to the dataset.
 void clearSeries()
          Removes all defined series.
 java.util.List getColumns()
           
 PropertyColumn getColumnsGroup()
           
 PropertyColumn getKey()
          Returns the key column.
 java.util.List getSeries()
          Returns a list of all the defined series.
 void removeSerie(AbstractColumn column)
          Removes the specified serie column from the dataset.
 void setKey(PropertyColumn key)
          Sets the key column.
 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

PieDataset

public PieDataset()
Method Detail

setKey

public void setKey(PropertyColumn key)
Sets the key column.

Parameters:
key - the key column

getKey

public PropertyColumn getKey()
Returns the key column.

Returns:
the key 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

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

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.