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

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

public class TimeSeriesDataset
extends AbstractDataset

See Also:
Serialized Form

Field Summary
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
           
 
Fields inherited from interface ar.com.fdvs.dj.domain.entities.Entity
SERIAL_VERSION_UID
 
Constructor Summary
TimeSeriesDataset()
           
 
Method Summary
 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)
           
 
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
 

Field Detail

YEAR

public static final Class YEAR

QUARTER

public static final Class QUARTER

MONTH

public static final Class MONTH

WEEK

public static final Class WEEK

DAY

public static final Class DAY

HOUR

public static final Class HOUR

MINUTE

public static final Class MINUTE

SECOND

public static final Class SECOND

MILLISECOND

public static final Class MILLISECOND
Constructor Detail

TimeSeriesDataset

public TimeSeriesDataset()
Method Detail

setTimePeriod

public void setTimePeriod(PropertyColumn timePeriod)
Sets the time period column.

Parameters:
timePeriod - the time period column

getTimePeriod

public PropertyColumn getTimePeriod()
Returns the time period column.

Returns:
the time period 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,
                     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 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

setTimePeriodClass

public void setTimePeriodClass(Class timePeriodClass)
Sets the time period class (YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND). Default DAY

Parameters:
timePeriodClass - one of the time period class constants in this class

getTimePeriodClass

public Class getTimePeriodClass()
Gets the time period class (YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND).

Returns:
one of the time period class constants in this class

transform

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)
Specified by:
transform in class AbstractDataset

getColumns

public List getColumns()
Specified by:
getColumns in class AbstractDataset

getColumnsGroup

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


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