public class DJPieChartBuilder extends AbstractChartBuilder
chart
Constructor and Description |
---|
DJPieChartBuilder() |
Modifier and Type | Method and Description |
---|---|
DJPieChartBuilder |
addSerie(AbstractColumn column)
Adds the specified serie column to the dataset.
|
DJPieChartBuilder |
addSeriesColor(Color color)
Adds the specified series color to the plot.
|
protected byte |
getChartType() |
protected PieDataset |
getDataset() |
protected PiePlot |
getPlot() |
DJPieChartBuilder |
setBackColor(Color backColor)
Sets the background color.
|
protected DJPieChartBuilder |
setCategory(PropertyColumn key)
Allows AbstractChartBuilder to set the key column
|
DJPieChartBuilder |
setCentered(boolean centered)
Sets the centered.
|
DJPieChartBuilder |
setCircular(boolean circular)
Sets the circular.
|
DJPieChartBuilder |
setCustomizerClass(String customizerClass)
Sets a user specified chart customizer class name.
|
DJPieChartBuilder |
setHeight(int height)
Sets the chart height.
|
DJPieChartBuilder |
setKey(PropertyColumn key)
Sets the key column.
|
DJPieChartBuilder |
setLabelFormat(String labelFormat)
Sets the label format.
|
DJPieChartBuilder |
setLegendBackgroundColor(Color legendBackgroundColor)
Sets the legend background color.
|
DJPieChartBuilder |
setLegendColor(Color legendColor)
Sets the legend color.
|
DJPieChartBuilder |
setLegendFont(Font legendFont)
Sets the legend font.
|
DJPieChartBuilder |
setLegendLabelFormat(String legendLabelFormat)
Sets the legend label format.
|
DJPieChartBuilder |
setLegendPosition(byte legendPosition)
Sets the legend position (DJChartOptions.EDGE_TOP, DJChartOptions.EDGE_BOTTOM, DJChartOptions.EDGE_LEFT, DJChartOptions.EDGE_RIGHT).
|
DJPieChartBuilder |
setLineColor(Color lineColor)
Sets the line color.
|
DJPieChartBuilder |
setLineStyle(byte lineStyle)
Sets the line style (DJChartOptions.LINE_STYLE_SOLID, DJChartOptions.LINE_STYLE_DASHED, DJChartOptions.LINE_STYLE_DOTTED, DJChartOptions.LINE_STYLE_DOUBLE).
|
DJPieChartBuilder |
setLineWidth(float lineWidth)
Sets the line width.
|
DJPieChartBuilder |
setLink(DJHyperLink link)
Sets the hyperlink.
|
DJPieChartBuilder |
setOperation(byte operation)
Sets the chart data operation (DJChart.CALCULATION_COUNT or DJChart.CALCULATION_SUM).
|
DJPieChartBuilder |
setPadding(int padding)
Sets the padding.
|
DJPieChartBuilder |
setPosition(byte position)
Sets the position (DJChartOptions.POSITION_FOOTER or DJChartOptions.POSITION_HEADER).
|
DJPieChartBuilder |
setSeriesColors(List seriesColors)
Set the specified series colors to the plot.
|
DJPieChartBuilder |
setShowLegend(boolean showLegend)
Sets the legend visibility.
|
DJPieChartBuilder |
setSubtitle(String subtitle)
Sets the subtitle.
|
DJPieChartBuilder |
setSubtitle(StringExpression subtitleExpression)
Sets the subtitle expression.
|
DJPieChartBuilder |
setSubtitleColor(Color subtitleColor)
Sets the subtitle color.
|
DJPieChartBuilder |
setSubtitleFont(Font subtitleFont)
Sets the subtitle font.
|
DJPieChartBuilder |
setTheme(String theme)
Sets the theme.
|
DJPieChartBuilder |
setTitle(String title)
Sets the title.
|
DJPieChartBuilder |
setTitle(StringExpression titleExpression)
Sets the title expression.
|
DJPieChartBuilder |
setTitleColor(Color titleColor)
Sets the title color.
|
DJPieChartBuilder |
setTitleFont(Font titleFont)
Sets the title font.
|
DJPieChartBuilder |
setTitlePosition(byte titlePosition)
Sets the title position (DJChartOptions.EDGE_TOP, DJChartOptions.EDGE_BOTTOM, DJChartOptions.EDGE_LEFT, DJChartOptions.EDGE_RIGHT).
|
DJPieChartBuilder |
setWidth(int width)
Sets the chart width.
|
DJPieChartBuilder |
setX(int x)
Sets the x position.
|
DJPieChartBuilder |
setY(int y)
Sets the y position.
|
build, setChartOptions, setColumnGroup
public DJPieChartBuilder setOperation(byte operation)
setOperation
in class AbstractChartBuilder
operation
- the chart data operationpublic DJPieChartBuilder setLink(DJHyperLink link)
setLink
in class AbstractChartBuilder
link
- the hyperlinkpublic DJPieChartBuilder setBackColor(Color backColor)
setBackColor
in class AbstractChartBuilder
backColor
- the background colorpublic DJPieChartBuilder setHeight(int height)
setHeight
in class AbstractChartBuilder
height
- the chart heightpublic DJPieChartBuilder setWidth(int width)
setWidth
in class AbstractChartBuilder
width
- the chart widthpublic DJPieChartBuilder setCentered(boolean centered)
setCentered
in class AbstractChartBuilder
centered
- the centeredpublic DJPieChartBuilder setPosition(byte position)
setPosition
in class AbstractChartBuilder
position
- the positionpublic DJPieChartBuilder setY(int y)
setY
in class AbstractChartBuilder
y
- the y positionpublic DJPieChartBuilder setX(int x)
setX
in class AbstractChartBuilder
y
- the x positionpublic DJPieChartBuilder setShowLegend(boolean showLegend)
setShowLegend
in class AbstractChartBuilder
showLegend
- the legend visibilitypublic DJPieChartBuilder setTitleColor(Color titleColor)
setTitleColor
in class AbstractChartBuilder
titleColor
- the title colorpublic DJPieChartBuilder setSubtitleColor(Color subtitleColor)
setSubtitleColor
in class AbstractChartBuilder
subtitleColor
- the subtitle colorpublic DJPieChartBuilder setLegendColor(Color legendColor)
setLegendColor
in class AbstractChartBuilder
legendColor
- the legend colorpublic DJPieChartBuilder setLegendBackgroundColor(Color legendBackgroundColor)
setLegendBackgroundColor
in class AbstractChartBuilder
legendBackgroundColor
- the legend background colorpublic DJPieChartBuilder setTheme(String theme)
setTheme
in class AbstractChartBuilder
theme
- the themepublic DJPieChartBuilder setTitleFont(Font titleFont)
setTitleFont
in class AbstractChartBuilder
titleFont
- the title fontpublic DJPieChartBuilder setSubtitleFont(Font subtitleFont)
setSubtitleFont
in class AbstractChartBuilder
subtitleFont
- the subtitle fontpublic DJPieChartBuilder setLegendFont(Font legendFont)
setLegendFont
in class AbstractChartBuilder
legendFont
- the legend fontpublic DJPieChartBuilder setLegendPosition(byte legendPosition)
setLegendPosition
in class AbstractChartBuilder
legendPosition
- the legend positionpublic DJPieChartBuilder setTitlePosition(byte titlePosition)
setTitlePosition
in class AbstractChartBuilder
titlePosition
- the title positionpublic DJPieChartBuilder setTitle(String title)
setTitle
in class AbstractChartBuilder
title
- the titlepublic DJPieChartBuilder setTitle(StringExpression titleExpression)
setTitle
in class AbstractChartBuilder
titleExpression
- the title expressionpublic DJPieChartBuilder setSubtitle(String subtitle)
setSubtitle
in class AbstractChartBuilder
subtitle
- the subtitlepublic DJPieChartBuilder setSubtitle(StringExpression subtitleExpression)
setSubtitle
in class AbstractChartBuilder
subtitleExpression
- the subtitle expressionpublic DJPieChartBuilder setLineStyle(byte lineStyle)
setLineStyle
in class AbstractChartBuilder
lineStyle
- one of the line style constants in DJChartOptions classpublic DJPieChartBuilder setLineWidth(float lineWidth)
setLineWidth
in class AbstractChartBuilder
lineWidth
- the line widthpublic DJPieChartBuilder setLineColor(Color lineColor)
setLineColor
in class AbstractChartBuilder
lineColor
- the line colorpublic DJPieChartBuilder setPadding(int padding)
setPadding
in class AbstractChartBuilder
padding
- the paddingpublic DJPieChartBuilder setCustomizerClass(String customizerClass)
setCustomizerClass
in class AbstractChartBuilder
JRChartCustomizer
protected DJPieChartBuilder setCategory(PropertyColumn key)
setCategory
in class AbstractChartBuilder
public DJPieChartBuilder setKey(PropertyColumn key)
key
- the key columnpublic DJPieChartBuilder addSerie(AbstractColumn column)
addSerie
in class AbstractChartBuilder
column
- the serie columnpublic DJPieChartBuilder addSeriesColor(Color color)
addSeriesColor
in class AbstractChartBuilder
color
- the series colorpublic DJPieChartBuilder setSeriesColors(List seriesColors)
setSeriesColors
in class AbstractChartBuilder
seriesColors
- the series colorspublic DJPieChartBuilder setCircular(boolean circular)
circular
- the circularpublic DJPieChartBuilder setLabelFormat(String labelFormat)
labelFormat
- the label formatpublic DJPieChartBuilder setLegendLabelFormat(String legendLabelFormat)
legendLabelFormat
- the legend label formatprotected PieDataset getDataset()
getDataset
in class AbstractChartBuilder
protected PiePlot getPlot()
getPlot
in class AbstractChartBuilder
protected byte getChartType()
getChartType
in class AbstractChartBuilder
Copyright © 2006–2015 FDV Solutions. All rights reserved.