net.sf.jasperreports.charts.base
Class JRBasePieDataset

java.lang.Object
  extended by net.sf.jasperreports.engine.base.JRBaseElementDataset
      extended by net.sf.jasperreports.engine.base.JRBaseChartDataset
          extended by net.sf.jasperreports.charts.base.JRBasePieDataset
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, JRPieDataset, JRChartDataset, JRCloneable, JRElementDataset

public class JRBasePieDataset
extends JRBaseChartDataset
implements JRPieDataset

Version:
$Id: JRBasePieDataset.java 1994 2007-12-05 13:48:10Z teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  JRExpression keyExpression
           
protected  JRExpression labelExpression
           
protected  JRExpression valueExpression
           
 
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElementDataset
datasetRun, incrementGroup, incrementType, incrementWhenExpression, resetGroup, resetType
 
Fields inherited from interface net.sf.jasperreports.engine.JRChartDataset
CATEGORY_DATASET, HIGHLOW_DATASET, PIE_DATASET, TIMEPERIOD_DATASET, TIMESERIES_DATASET, VALUE_DATASET, XY_DATASET, XYZ_DATASET
 
Constructor Summary
JRBasePieDataset(JRChartDataset dataset)
           
JRBasePieDataset(JRPieDataset dataset, JRBaseObjectFactory factory)
           
 
Method Summary
 java.lang.Object clone()
           
 void collectExpressions(JRExpressionCollector collector)
           
 byte getDatasetType()
          Gets the dataset type.
 JRExpression getKeyExpression()
           
 JRExpression getLabelExpression()
           
 JRHyperlink getSectionHyperlink()
          Returns the hyperlink specification for chart sections.
 JRExpression getValueExpression()
           
 void validate(JRVerifier verifier)
          Validates the dataset using a verifier.
 
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElementDataset
getDatasetRun, getIncrementGroup, getIncrementType, getIncrementWhenExpression, getResetGroup, getResetType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jasperreports.engine.JRElementDataset
getDatasetRun, getIncrementGroup, getIncrementType, getIncrementWhenExpression, getResetGroup, getResetType
 

Field Detail

keyExpression

protected JRExpression keyExpression

valueExpression

protected JRExpression valueExpression

labelExpression

protected JRExpression labelExpression
Constructor Detail

JRBasePieDataset

public JRBasePieDataset(JRChartDataset dataset)

JRBasePieDataset

public JRBasePieDataset(JRPieDataset dataset,
                        JRBaseObjectFactory factory)
Method Detail

getKeyExpression

public JRExpression getKeyExpression()
Specified by:
getKeyExpression in interface JRPieDataset

getValueExpression

public JRExpression getValueExpression()
Specified by:
getValueExpression in interface JRPieDataset

getLabelExpression

public JRExpression getLabelExpression()
Specified by:
getLabelExpression in interface JRPieDataset

getDatasetType

public byte getDatasetType()
Description copied from interface: JRChartDataset
Gets the dataset type. Must be one of the dataset type constants defined in this class.

Specified by:
getDatasetType in interface JRChartDataset

collectExpressions

public void collectExpressions(JRExpressionCollector collector)
Specified by:
collectExpressions in interface JRElementDataset

getSectionHyperlink

public JRHyperlink getSectionHyperlink()
Description copied from interface: JRPieDataset
Returns the hyperlink specification for chart sections.

The hyperlink will be evaluated for every chart section and an image map will be created for the chart.

Specified by:
getSectionHyperlink in interface JRPieDataset
Returns:
hyperlink specification for chart sections

validate

public void validate(JRVerifier verifier)
Description copied from interface: JRChartDataset
Validates the dataset using a verifier.

Broken rules are collected by the verifier.

Specified by:
validate in interface JRChartDataset
Parameters:
verifier - the verifier to use for validation

clone

public java.lang.Object clone()
Specified by:
clone in interface JRCloneable
Overrides:
clone in class JRBaseElementDataset


© 2001-2006 JasperSoft Corporation www.jaspersoft.com