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, java.io.Serializable

public class TimeSeriesDataset
extends AbstractDataset

See Also:
Serialized Form

Field Summary
static java.lang.Class DAY
           
static java.lang.Class HOUR
           
static java.lang.Class MILLISECOND
           
static java.lang.Class MINUTE
           
static java.lang.Class MONTH
           
static java.lang.Class QUARTER
           
static java.lang.Class SECOND
           
static java.lang.Class WEEK
           
static java.lang.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, 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.
 java.util.List getColumns()
           
 PropertyColumn getColumnsGroup()
           
 java.util.List getSeries()
          Returns a list of all the defined series.
 PropertyColumn getTimePeriod()
          Returns the time period column.
 java.lang.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(java.lang.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, 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
 

Field Detail

YEAR

public static final java.lang.Class YEAR

QUARTER

public static final java.lang.Class QUARTER

MONTH

public static final java.lang.Class MONTH

WEEK

public static final java.lang.Class WEEK

DAY

public static final java.lang.Class DAY

HOUR

public static final java.lang.Class HOUR

MINUTE

public static final java.lang.Class MINUTE

SECOND

public static final java.lang.Class SECOND

MILLISECOND

public static final java.lang.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,
                     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

setTimePeriodClass

public void setTimePeriodClass(java.lang.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 java.lang.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,
                                                                         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.