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

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

public class XYDataset
extends AbstractDataset

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface ar.com.fdvs.dj.domain.entities.Entity
SERIAL_VERSION_UID
 
Constructor Summary
XYDataset()
           
 
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 getXValue()
          Returns the x value column.
 void removeSerie(AbstractColumn column)
          Removes the specified serie column from the dataset.
 void setXValue(PropertyColumn xValue)
          Sets the x value 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

XYDataset

public XYDataset()
Method Detail

setXValue

public void setXValue(PropertyColumn xValue)
Sets the x value column.

Parameters:
xValue - the x value column

getXValue

public PropertyColumn getXValue()
Returns the x value column.

Returns:
the x value 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

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.