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