Package net.sf.jasperreports.charts.base
Class JRBasePieSeries
- java.lang.Object
-
- net.sf.jasperreports.charts.base.JRBasePieSeries
-
- All Implemented Interfaces:
Serializable,Cloneable,JRPieSeries,JRCloneable
- Direct Known Subclasses:
JRDesignPieSeries
public class JRBasePieSeries extends Object implements JRPieSeries, Serializable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JRExpressionkeyExpressionprotected JRExpressionlabelExpressionprotected JRHyperlinksectionHyperlinkprotected JRExpressionvalueExpression
-
Constructor Summary
Constructors Modifier Constructor Description protectedJRBasePieSeries()JRBasePieSeries(JRPieSeries pieSeries, JRBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()JRExpressiongetKeyExpression()JRExpressiongetLabelExpression()JRHyperlinkgetSectionHyperlink()Returns the hyperlink specification for chart sections.JRExpressiongetValueExpression()
-
-
-
Field Detail
-
keyExpression
protected JRExpression keyExpression
-
valueExpression
protected JRExpression valueExpression
-
labelExpression
protected JRExpression labelExpression
-
sectionHyperlink
protected JRHyperlink sectionHyperlink
-
-
Constructor Detail
-
JRBasePieSeries
protected JRBasePieSeries()
-
JRBasePieSeries
public JRBasePieSeries(JRPieSeries pieSeries, JRBaseObjectFactory 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.
-
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 Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
-