Package net.sf.jasperreports.charts.fill
Class JRFillPieSeries
- java.lang.Object
-
- net.sf.jasperreports.charts.fill.JRFillPieSeries
-
- All Implemented Interfaces:
java.lang.Cloneable,JRPieSeries,JRCloneable
public class JRFillPieSeries extends java.lang.Object implements JRPieSeries
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description protected JRPieSeriesparent
-
Constructor Summary
Constructors Constructor Description JRFillPieSeries(JRPieSeries pieSeries, JRFillObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()protected voidevaluate(JRCalculator calculator)protected voidevaluateSectionHyperlink(JRCalculator calculator)protected java.lang.Comparable<?>getKey()JRExpressiongetKeyExpression()protected java.lang.StringgetLabel()JRExpressiongetLabelExpression()protected JRPrintHyperlinkgetPrintSectionHyperlink()JRHyperlinkgetSectionHyperlink()Returns the hyperlink specification for chart sections.protected java.lang.NumbergetValue()JRExpressiongetValueExpression()booleanhasSectionHyperlinks()
-
-
-
Field Detail
-
parent
protected JRPieSeries parent
-
-
Constructor Detail
-
JRFillPieSeries
public JRFillPieSeries(JRPieSeries pieSeries, JRFillObjectFactory factory)
-
-
Method Detail
-
getKeyExpression
public JRExpression getKeyExpression()
- Specified by:
getKeyExpressionin interfaceJRPieSeries- Returns:
- a
java.lang.Comparableobject representing the categories that will make up the slices in the pie chart.
-
getValueExpression
public JRExpression getValueExpression()
- Specified by:
getValueExpressionin interfaceJRPieSeries- Returns:
- a numeric expression that produces the values corresponding to each category/key in the dataset.
-
getLabelExpression
public JRExpression getLabelExpression()
- Specified by:
getLabelExpressionin interfaceJRPieSeries- Returns:
- the label expression. If this expression is missing, the chart
will display default labels for each slice in the pie chart. Use this
expression, which returns
java.lang.Stringvalues, to customize the item labels for the pie chart.
-
getKey
protected java.lang.Comparable<?> getKey()
-
getValue
protected java.lang.Number getValue()
-
getLabel
protected java.lang.String getLabel()
-
getPrintSectionHyperlink
protected JRPrintHyperlink getPrintSectionHyperlink()
-
evaluate
protected void evaluate(JRCalculator calculator) throws JRExpressionEvalException
- Throws:
JRExpressionEvalException
-
evaluateSectionHyperlink
protected void evaluateSectionHyperlink(JRCalculator calculator) throws JRExpressionEvalException
- Throws:
JRExpressionEvalException
-
hasSectionHyperlinks
public boolean hasSectionHyperlinks()
-
getSectionHyperlink
public JRHyperlink getSectionHyperlink()
Description copied from interface:JRPieSeriesReturns 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:
getSectionHyperlinkin interfaceJRPieSeries- Returns:
- hyperlink specification for chart sections
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classjava.lang.Object
-
-