Package net.sf.jasperreports.charts.base
Class JRBasePiePlot
- java.lang.Object
-
- net.sf.jasperreports.charts.base.JRBaseChartPlot
-
- net.sf.jasperreports.charts.base.JRBasePiePlot
-
- All Implemented Interfaces:
Serializable
,Cloneable
,JRChartPlot
,JRPiePlot
,JRChangeEventsSupport
,JRCloneable
- Direct Known Subclasses:
JRBasePie3DPlot
,JRDesignPiePlot
public class JRBasePiePlot extends JRBaseChartPlot implements JRPiePlot
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.jasperreports.charts.base.JRBaseChartPlot
JRBaseChartPlot.JRBaseSeriesColor
-
Nested classes/interfaces inherited from interface net.sf.jasperreports.charts.JRChartPlot
JRChartPlot.JRSeriesColor
-
-
Field Summary
Fields Modifier and Type Field Description protected Boolean
circular
protected JRItemLabel
itemLabel
protected String
labelFormat
protected String
legendLabelFormat
static String
PROPERTY_CIRCULAR
static String
PROPERTY_ITEM_LABEL
static String
PROPERTY_LABEL_FORMAT
static String
PROPERTY_LEGEND_LABEL_FORMAT
static String
PROPERTY_SHOW_LABELS
protected Boolean
showLabels
-
Fields inherited from class net.sf.jasperreports.charts.base.JRBaseChartPlot
backcolor, backgroundAlpha, chart, foregroundAlpha, labelRotation, orientation, PROPERTY_BACKCOLOR, PROPERTY_BACKGROUND_ALPHA, PROPERTY_FOREGROUND_ALPHA, PROPERTY_LABEL_ROTATION, PROPERTY_ORIENTATION, PROPERTY_SERIES_COLORS, seriesColors
-
-
Constructor Summary
Constructors Modifier Constructor Description JRBasePiePlot(JRChartPlot chartPlot, JRChart chart)
protected
JRBasePiePlot(JRChartPlot chartPlot, JRChart chart, ChartCopyObjectFactory copyObjectFactory)
JRBasePiePlot(JRPiePlot piePlot, ChartsBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone(JRChart parentChart)
void
collectExpressions(ChartsExpressionCollector collector)
Boolean
getCircular()
JRItemLabel
getItemLabel()
String
getLabelFormat()
String
getLegendLabelFormat()
Boolean
getShowLabels()
void
setCircular(Boolean isCircular)
void
setItemLabel(JRItemLabel itemLabel)
void
setLabelFormat(String labelFormat)
void
setLegendLabelFormat(String legendLabelFormat)
void
setShowLabels(Boolean showLabels)
-
Methods inherited from class net.sf.jasperreports.charts.base.JRBaseChartPlot
addSeriesColor, clearSeriesColors, clone, getBackcolor, getBackgroundAlpha, getChart, getEventSupport, getForegroundAlpha, getLabelRotation, getOrientation, getOwnBackcolor, getSeriesColors, getStyleResolver, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setSeriesColors
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.charts.JRChartPlot
addSeriesColor, clearSeriesColors, getBackcolor, getBackgroundAlpha, getChart, getForegroundAlpha, getLabelRotation, getOrientation, getOwnBackcolor, getSeriesColors, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setSeriesColors
-
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
-
-
-
-
Field Detail
-
PROPERTY_CIRCULAR
public static final String PROPERTY_CIRCULAR
- See Also:
- Constant Field Values
-
PROPERTY_LABEL_FORMAT
public static final String PROPERTY_LABEL_FORMAT
- See Also:
- Constant Field Values
-
PROPERTY_LEGEND_LABEL_FORMAT
public static final String PROPERTY_LEGEND_LABEL_FORMAT
- See Also:
- Constant Field Values
-
PROPERTY_ITEM_LABEL
public static final String PROPERTY_ITEM_LABEL
- See Also:
- Constant Field Values
-
PROPERTY_SHOW_LABELS
public static final String PROPERTY_SHOW_LABELS
- See Also:
- Constant Field Values
-
circular
protected Boolean circular
-
labelFormat
protected String labelFormat
-
legendLabelFormat
protected String legendLabelFormat
-
itemLabel
protected JRItemLabel itemLabel
-
showLabels
protected Boolean showLabels
-
-
Constructor Detail
-
JRBasePiePlot
public JRBasePiePlot(JRChartPlot chartPlot, JRChart chart)
-
JRBasePiePlot
protected JRBasePiePlot(JRChartPlot chartPlot, JRChart chart, ChartCopyObjectFactory copyObjectFactory)
-
JRBasePiePlot
public JRBasePiePlot(JRPiePlot piePlot, ChartsBaseObjectFactory factory)
-
-
Method Detail
-
collectExpressions
public void collectExpressions(ChartsExpressionCollector collector)
- Specified by:
collectExpressions
in interfaceJRChartPlot
-
getCircular
public Boolean getCircular()
- Specified by:
getCircular
in interfaceJRPiePlot
- Returns:
- the circular
-
setCircular
public void setCircular(Boolean isCircular)
- Parameters:
isCircular
- the isCircular to set
-
getLabelFormat
public String getLabelFormat()
- Specified by:
getLabelFormat
in interfaceJRPiePlot
- Returns:
- the labelFormat
-
setLabelFormat
public void setLabelFormat(String labelFormat)
- Parameters:
labelFormat
- the labelFormat to set
-
getLegendLabelFormat
public String getLegendLabelFormat()
- Specified by:
getLegendLabelFormat
in interfaceJRPiePlot
- Returns:
- the legendLabelFormat
-
getItemLabel
public JRItemLabel getItemLabel()
- Specified by:
getItemLabel
in interfaceJRPiePlot
- Returns:
- a
JRItemLabel
object representing the item label
-
setLegendLabelFormat
public void setLegendLabelFormat(String legendLabelFormat)
- Parameters:
legendLabelFormat
- the legendLabelFormat to set
-
setItemLabel
public void setItemLabel(JRItemLabel itemLabel)
- Parameters:
itemLabel
- the itemLabel to set
-
getShowLabels
public Boolean getShowLabels()
- Specified by:
getShowLabels
in interfaceJRPiePlot
- Returns:
- a flag that specifies whether labels are to be shown or not
-
setShowLabels
public void setShowLabels(Boolean showLabels)
-
clone
public Object clone(JRChart parentChart)
- Specified by:
clone
in interfaceJRChartPlot
- Overrides:
clone
in classJRBaseChartPlot
-
-