Package net.sf.jasperreports.charts.base
Class JRBasePiePlot
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseChartPlot
-
- net.sf.jasperreports.charts.base.JRBasePiePlot
-
- All Implemented Interfaces:
Serializable,Cloneable,JRPiePlot,JRChangeEventsSupport,JRChartPlot,JRCloneable
- Direct Known Subclasses:
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.engine.base.JRBaseChartPlot
JRBaseChartPlot.JRBaseSeriesColor
-
Nested classes/interfaces inherited from interface net.sf.jasperreports.engine.JRChartPlot
JRChartPlot.JRSeriesColor
-
-
Field Summary
Fields Modifier and Type Field Description protected Booleancircularprotected JRItemLabelitemLabelprotected StringlabelFormatprotected StringlegendLabelFormatstatic StringPROPERTY_CIRCULARstatic StringPROPERTY_ITEM_LABELstatic StringPROPERTY_LABEL_FORMATstatic StringPROPERTY_LEGEND_LABEL_FORMATstatic StringPROPERTY_SHOW_LABELSprotected BooleanshowLabels-
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseChartPlot
backcolor, backgroundAlphaFloat, chart, foregroundAlphaFloat, labelRotationDouble, orientationValue, PROPERTY_BACKCOLOR, PROPERTY_BACKGROUND_ALPHA, PROPERTY_FOREGROUND_ALPHA, PROPERTY_LABEL_ROTATION, PROPERTY_ORIENTATION, PROPERTY_SERIES_COLORS, seriesColors
-
-
Constructor Summary
Constructors Modifier Constructor Description JRBasePiePlot(JRPiePlot piePlot, JRBaseObjectFactory factory)JRBasePiePlot(JRChartPlot chartPlot, JRChart chart)protectedJRBasePiePlot(JRChartPlot chartPlot, JRChart chart, ChartCopyObjectFactory copyObjectFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone(JRChart parentChart)voidcollectExpressions(JRExpressionCollector collector)BooleangetCircular()JRItemLabelgetItemLabel()StringgetLabelFormat()StringgetLegendLabelFormat()BooleangetShowLabels()voidsetCircular(Boolean isCircular)voidsetItemLabel(JRItemLabel itemLabel)voidsetLabelFormat(String labelFormat)voidsetLegendLabelFormat(String legendLabelFormat)voidsetShowLabels(Boolean showLabels)-
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseChartPlot
addSeriesColor, clearSeriesColors, clone, getBackcolor, getBackgroundAlphaFloat, getChart, getEventSupport, getForegroundAlphaFloat, getLabelRotationDouble, getOrientationValue, 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.engine.JRChartPlot
addSeriesColor, clearSeriesColors, getBackcolor, getBackgroundAlphaFloat, getChart, getForegroundAlphaFloat, getLabelRotationDouble, getOrientationValue, 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, JRBaseObjectFactory factory)
-
-
Method Detail
-
collectExpressions
public void collectExpressions(JRExpressionCollector collector)
- Specified by:
collectExpressionsin interfaceJRChartPlot
-
getCircular
public Boolean getCircular()
- Specified by:
getCircularin interfaceJRPiePlot- Returns:
- the circular
-
setCircular
public void setCircular(Boolean isCircular)
- Parameters:
isCircular- the isCircular to set
-
getLabelFormat
public String getLabelFormat()
- Specified by:
getLabelFormatin interfaceJRPiePlot- Returns:
- the labelFormat
-
setLabelFormat
public void setLabelFormat(String labelFormat)
- Parameters:
labelFormat- the labelFormat to set
-
getLegendLabelFormat
public String getLegendLabelFormat()
- Specified by:
getLegendLabelFormatin interfaceJRPiePlot- Returns:
- the legendLabelFormat
-
getItemLabel
public JRItemLabel getItemLabel()
- Specified by:
getItemLabelin interfaceJRPiePlot- Returns:
- a
JRItemLabelobject 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:
getShowLabelsin 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:
clonein interfaceJRChartPlot- Overrides:
clonein classJRBaseChartPlot
-
-