public class DJBarChartBuilder extends AbstractChartBuilder
chart
Constructor and Description |
---|
DJBarChartBuilder() |
Modifier and Type | Method and Description |
---|---|
DJBarChartBuilder |
addSerie(AbstractColumn column)
Adds the specified serie column to the dataset.
|
DJBarChartBuilder |
addSerie(AbstractColumn column,
String label)
Adds the specified serie column to the dataset with custom label.
|
DJBarChartBuilder |
addSerie(AbstractColumn column,
StringExpression labelExpression)
Adds the specified serie column to the dataset with custom label.
|
DJBarChartBuilder |
addSeriesColor(Color color)
Adds the specified series color to the plot.
|
protected byte |
getChartType() |
protected CategoryDataset |
getDataset() |
protected BarPlot |
getPlot() |
DJBarChartBuilder |
setBackColor(Color backColor)
Sets the background color.
|
DJBarChartBuilder |
setCategory(PropertyColumn category)
Sets the category column.
|
DJBarChartBuilder |
setCategoryAxisFormat(DJAxisFormat categoryAxisFormat)
Sets the category axis format.
|
DJBarChartBuilder |
setCentered(boolean centered)
Sets the centered.
|
DJBarChartBuilder |
setCustomizerClass(String customizerClass)
Sets a user specified chart customizer class name.
|
DJBarChartBuilder |
setHeight(int height)
Sets the chart height.
|
DJBarChartBuilder |
setLabelRotation(double labelRotation)
Sets the angle in degrees to rotate the data axis labels.
|
DJBarChartBuilder |
setLegendBackgroundColor(Color legendBackgroundColor)
Sets the legend background color.
|
DJBarChartBuilder |
setLegendColor(Color legendColor)
Sets the legend color.
|
DJBarChartBuilder |
setLegendFont(Font legendFont)
Sets the legend font.
|
DJBarChartBuilder |
setLegendPosition(byte legendPosition)
Sets the legend position (DJChartOptions.EDGE_TOP, DJChartOptions.EDGE_BOTTOM, DJChartOptions.EDGE_LEFT, DJChartOptions.EDGE_RIGHT).
|
DJBarChartBuilder |
setLineColor(Color lineColor)
Sets the line color.
|
DJBarChartBuilder |
setLineStyle(byte lineStyle)
Sets the line style (DJChartOptions.LINE_STYLE_SOLID, DJChartOptions.LINE_STYLE_DASHED, DJChartOptions.LINE_STYLE_DOTTED, DJChartOptions.LINE_STYLE_DOUBLE).
|
DJBarChartBuilder |
setLineWidth(float lineWidth)
Sets the line width.
|
DJBarChartBuilder |
setLink(DJHyperLink link)
Sets the hyperlink.
|
DJBarChartBuilder |
setOperation(byte operation)
Sets the chart data operation (DJChart.CALCULATION_COUNT or DJChart.CALCULATION_SUM).
|
DJBarChartBuilder |
setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
Sets the plot orientation (PlotOrientation.HORIZONTAL or PlotOrientation.VERTICAL).
|
DJBarChartBuilder |
setPadding(int padding)
Sets the padding.
|
DJBarChartBuilder |
setPosition(byte position)
Sets the position (DJChartOptions.POSITION_FOOTER or DJChartOptions.POSITION_HEADER).
|
DJBarChartBuilder |
setSeriesColors(List seriesColors)
Set the specified series colors to the plot.
|
DJBarChartBuilder |
setShowLabels(boolean showLabels)
Sets the labels visibility.
|
DJBarChartBuilder |
setShowLegend(boolean showLegend)
Sets the legend visibility.
|
DJBarChartBuilder |
setShowTickLabels(boolean showTickLabels)
Sets the tick labels visibility.
|
DJBarChartBuilder |
setShowTickMarks(boolean showTickMarks)
Sets the tick marks visibility.
|
DJBarChartBuilder |
setSubtitle(String subtitle)
Sets the subtitle.
|
DJBarChartBuilder |
setSubtitle(StringExpression subtitleExpression)
Sets the subtitle expression.
|
DJBarChartBuilder |
setSubtitleColor(Color subtitleColor)
Sets the subtitle color.
|
DJBarChartBuilder |
setSubtitleFont(Font subtitleFont)
Sets the subtitle font.
|
DJBarChartBuilder |
setTheme(String theme)
Sets the theme.
|
DJBarChartBuilder |
setTitle(String title)
Sets the title.
|
DJBarChartBuilder |
setTitle(StringExpression titleExpression)
Sets the title expression.
|
DJBarChartBuilder |
setTitleColor(Color titleColor)
Sets the title color.
|
DJBarChartBuilder |
setTitleFont(Font titleFont)
Sets the title font.
|
DJBarChartBuilder |
setTitlePosition(byte titlePosition)
Sets the title position (DJChartOptions.EDGE_TOP, DJChartOptions.EDGE_BOTTOM, DJChartOptions.EDGE_LEFT, DJChartOptions.EDGE_RIGHT).
|
DJBarChartBuilder |
setUseSeriesAsCategory(boolean useSeriesAsCategory) |
DJBarChartBuilder |
setValueAxisFormat(DJAxisFormat valueAxisFormat)
Sets the value axis format.
|
DJBarChartBuilder |
setWidth(int width)
Sets the chart width.
|
DJBarChartBuilder |
setX(int x)
Sets the x position.
|
DJBarChartBuilder |
setY(int y)
Sets the y position.
|
build, setChartOptions, setColumnGroup
public DJBarChartBuilder setOperation(byte operation)
setOperation
in class AbstractChartBuilder
operation
- the chart data operationpublic DJBarChartBuilder setLink(DJHyperLink link)
setLink
in class AbstractChartBuilder
link
- the hyperlinkpublic DJBarChartBuilder setBackColor(Color backColor)
setBackColor
in class AbstractChartBuilder
backColor
- the background colorpublic DJBarChartBuilder setHeight(int height)
setHeight
in class AbstractChartBuilder
height
- the chart heightpublic DJBarChartBuilder setWidth(int width)
setWidth
in class AbstractChartBuilder
width
- the chart widthpublic DJBarChartBuilder setCentered(boolean centered)
setCentered
in class AbstractChartBuilder
centered
- the centeredpublic DJBarChartBuilder setPosition(byte position)
setPosition
in class AbstractChartBuilder
position
- the positionpublic DJBarChartBuilder setY(int y)
setY
in class AbstractChartBuilder
y
- the y positionpublic DJBarChartBuilder setX(int x)
setX
in class AbstractChartBuilder
y
- the x positionpublic DJBarChartBuilder setShowLegend(boolean showLegend)
setShowLegend
in class AbstractChartBuilder
showLegend
- the legend visibilitypublic DJBarChartBuilder setTitleColor(Color titleColor)
setTitleColor
in class AbstractChartBuilder
titleColor
- the title colorpublic DJBarChartBuilder setSubtitleColor(Color subtitleColor)
setSubtitleColor
in class AbstractChartBuilder
subtitleColor
- the subtitle colorpublic DJBarChartBuilder setLegendColor(Color legendColor)
setLegendColor
in class AbstractChartBuilder
legendColor
- the legend colorpublic DJBarChartBuilder setLegendBackgroundColor(Color legendBackgroundColor)
setLegendBackgroundColor
in class AbstractChartBuilder
legendBackgroundColor
- the legend background colorpublic DJBarChartBuilder setTheme(String theme)
setTheme
in class AbstractChartBuilder
theme
- the themepublic DJBarChartBuilder setTitleFont(Font titleFont)
setTitleFont
in class AbstractChartBuilder
titleFont
- the title fontpublic DJBarChartBuilder setSubtitleFont(Font subtitleFont)
setSubtitleFont
in class AbstractChartBuilder
subtitleFont
- the subtitle fontpublic DJBarChartBuilder setLegendFont(Font legendFont)
setLegendFont
in class AbstractChartBuilder
legendFont
- the legend fontpublic DJBarChartBuilder setLegendPosition(byte legendPosition)
setLegendPosition
in class AbstractChartBuilder
legendPosition
- the legend positionpublic DJBarChartBuilder setTitlePosition(byte titlePosition)
setTitlePosition
in class AbstractChartBuilder
titlePosition
- the title positionpublic DJBarChartBuilder setTitle(String title)
setTitle
in class AbstractChartBuilder
title
- the titlepublic DJBarChartBuilder setTitle(StringExpression titleExpression)
setTitle
in class AbstractChartBuilder
titleExpression
- the title expressionpublic DJBarChartBuilder setSubtitle(String subtitle)
setSubtitle
in class AbstractChartBuilder
subtitle
- the subtitlepublic DJBarChartBuilder setSubtitle(StringExpression subtitleExpression)
setSubtitle
in class AbstractChartBuilder
subtitleExpression
- the subtitle expressionpublic DJBarChartBuilder setLineStyle(byte lineStyle)
setLineStyle
in class AbstractChartBuilder
lineStyle
- one of the line style constants in DJChartOptions classpublic DJBarChartBuilder setLineWidth(float lineWidth)
setLineWidth
in class AbstractChartBuilder
lineWidth
- the line widthpublic DJBarChartBuilder setLineColor(Color lineColor)
setLineColor
in class AbstractChartBuilder
lineColor
- the line colorpublic DJBarChartBuilder setPadding(int padding)
setPadding
in class AbstractChartBuilder
padding
- the paddingpublic DJBarChartBuilder setCustomizerClass(String customizerClass)
setCustomizerClass
in class AbstractChartBuilder
JRChartCustomizer
public DJBarChartBuilder setCategory(PropertyColumn category)
setCategory
in class AbstractChartBuilder
category
- the category columnpublic DJBarChartBuilder addSerie(AbstractColumn column)
addSerie
in class AbstractChartBuilder
column
- the serie columnpublic DJBarChartBuilder addSerie(AbstractColumn column, String label)
column
- the serie columnlabel
- column the custom labelpublic DJBarChartBuilder addSerie(AbstractColumn column, StringExpression labelExpression)
column
- the serie columnlabel
- column the custom labelpublic DJBarChartBuilder setUseSeriesAsCategory(boolean useSeriesAsCategory)
public DJBarChartBuilder setLabelRotation(double labelRotation)
labelRotation
- the label rotationpublic DJBarChartBuilder setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
orientation
- the plot orientationpublic DJBarChartBuilder addSeriesColor(Color color)
addSeriesColor
in class AbstractChartBuilder
color
- the series colorpublic DJBarChartBuilder setSeriesColors(List seriesColors)
setSeriesColors
in class AbstractChartBuilder
seriesColors
- the series colorspublic DJBarChartBuilder setCategoryAxisFormat(DJAxisFormat categoryAxisFormat)
categoryAxisFormat
- the category axis formatpublic DJBarChartBuilder setValueAxisFormat(DJAxisFormat valueAxisFormat)
valueAxisFormat
- the value axis formatpublic DJBarChartBuilder setShowLabels(boolean showLabels)
showLabels
- the labels visibilitypublic DJBarChartBuilder setShowTickLabels(boolean showTickLabels)
showTickLabels
- the tick labels visibilitypublic DJBarChartBuilder setShowTickMarks(boolean showTickMarks)
showTickMarks
- the tick marks visibilityprotected CategoryDataset getDataset()
getDataset
in class AbstractChartBuilder
protected BarPlot getPlot()
getPlot
in class AbstractChartBuilder
protected byte getChartType()
getChartType
in class AbstractChartBuilder
Copyright © 2006–2015 FDV Solutions. All rights reserved.