net.sf.jasperreports.charts.design
Class JRDesignPieDataset

java.lang.Object
  extended by net.sf.jasperreports.engine.base.JRBaseElementDataset
      extended by net.sf.jasperreports.engine.design.JRDesignElementDataset
          extended by net.sf.jasperreports.engine.design.JRDesignChartDataset
              extended by net.sf.jasperreports.charts.design.JRDesignPieDataset
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, JRPieDataset, JRChangeEventsSupport, JRChartDataset, JRCloneable, JRElementDataset

public class JRDesignPieDataset
extends JRDesignChartDataset
implements JRPieDataset

Version:
$Id: JRDesignPieDataset.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
           
static java.lang.String PROPERTY_KEY_EXPRESSION
           
static java.lang.String PROPERTY_LABEL_EXPRESSION
           
static java.lang.String PROPERTY_SECTION_HYPERLINK
           
static java.lang.String PROPERTY_VALUE_EXPRESSION
           
protected  JRExpression valueExpression
           
 
Fields inherited from class net.sf.jasperreports.engine.design.JRDesignElementDataset
PROPERTY_DATASET_RUN, PROPERTY_INCREMENT_GROUP, PROPERTY_INCREMENT_TYPE, PROPERTY_INCREMENT_WHEN_EXPRESSION, PROPERTY_RESET_GROUP, PROPERTY_RESET_TYPE
 
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
JRDesignPieDataset(JRChartDataset dataset)
           
 
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 setKeyExpression(JRExpression keyExpression)
           
 void setLabelExpression(JRExpression labelExpression)
           
 void setSectionHyperlink(JRHyperlink sectionHyperlink)
          Sets the hyperlink specification for chart sections.
 void setValueExpression(JRExpression valueExpression)
           
 void validate(JRVerifier verifier)
          Validates the dataset using a verifier.
 
Methods inherited from class net.sf.jasperreports.engine.design.JRDesignElementDataset
getEventSupport, setDatasetRun, setIncrementGroup, setIncrementType, setIncrementWhenExpression, setResetGroup, setResetType
 
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

PROPERTY_KEY_EXPRESSION

public static final java.lang.String PROPERTY_KEY_EXPRESSION
See Also:
Constant Field Values

PROPERTY_LABEL_EXPRESSION

public static final java.lang.String PROPERTY_LABEL_EXPRESSION
See Also:
Constant Field Values

PROPERTY_SECTION_HYPERLINK

public static final java.lang.String PROPERTY_SECTION_HYPERLINK
See Also:
Constant Field Values

PROPERTY_VALUE_EXPRESSION

public static final java.lang.String PROPERTY_VALUE_EXPRESSION
See Also:
Constant Field Values

keyExpression

protected JRExpression keyExpression

valueExpression

protected JRExpression valueExpression

labelExpression

protected JRExpression labelExpression
Constructor Detail

JRDesignPieDataset

public JRDesignPieDataset(JRChartDataset dataset)
Method Detail

getKeyExpression

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

setKeyExpression

public void setKeyExpression(JRExpression keyExpression)

getValueExpression

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

setValueExpression

public void setValueExpression(JRExpression valueExpression)

getLabelExpression

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

setLabelExpression

public void setLabelExpression(JRExpression labelExpression)

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
Overrides:
getDatasetType in class JRDesignChartDataset

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

setSectionHyperlink

public void setSectionHyperlink(JRHyperlink sectionHyperlink)
Sets the hyperlink specification for chart sections.

Parameters:
sectionHyperlink - the hyperlink specification
See Also:
getSectionHyperlink()

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