public class DJLineChartBuilder extends AbstractChartBuilder
chart| Constructor and Description |
|---|
DJLineChartBuilder() |
| Modifier and Type | Method and Description |
|---|---|
DJLineChartBuilder |
addSerie(AbstractColumn column)
Adds the specified serie column to the dataset.
|
DJLineChartBuilder |
addSerie(AbstractColumn column,
String label)
Adds the specified serie column to the dataset with custom label.
|
DJLineChartBuilder |
addSerie(AbstractColumn column,
StringExpression labelExpression)
Adds the specified serie column to the dataset with custom label.
|
DJLineChartBuilder |
addSeriesColor(Color color)
Adds the specified series color to the plot.
|
protected byte |
getChartType() |
protected CategoryDataset |
getDataset() |
protected LinePlot |
getPlot() |
DJLineChartBuilder |
setBackColor(Color backColor)
Sets the background color.
|
DJLineChartBuilder |
setCategory(PropertyColumn category)
Sets the category column.
|
DJLineChartBuilder |
setCategoryAxisFormat(DJAxisFormat categoryAxisFormat)
Sets the category axis format.
|
DJLineChartBuilder |
setCentered(boolean centered)
Sets the centered.
|
DJLineChartBuilder |
setCustomizerClass(String customizerClass)
Sets a user specified chart customizer class name.
|
DJLineChartBuilder |
setHeight(int height)
Sets the chart height.
|
DJLineChartBuilder |
setLabelRotation(double labelRotation)
Sets the angle in degrees to rotate the data axis labels.
|
DJLineChartBuilder |
setLegendBackgroundColor(Color legendBackgroundColor)
Sets the legend background color.
|
DJLineChartBuilder |
setLegendColor(Color legendColor)
Sets the legend color.
|
DJLineChartBuilder |
setLegendFont(Font legendFont)
Sets the legend font.
|
DJLineChartBuilder |
setLegendPosition(byte legendPosition)
Sets the legend position (DJChartOptions.EDGE_TOP, DJChartOptions.EDGE_BOTTOM, DJChartOptions.EDGE_LEFT, DJChartOptions.EDGE_RIGHT).
|
DJLineChartBuilder |
setLineColor(Color lineColor)
Sets the line color.
|
DJLineChartBuilder |
setLineStyle(byte lineStyle)
Sets the line style (DJChartOptions.LINE_STYLE_SOLID, DJChartOptions.LINE_STYLE_DASHED, DJChartOptions.LINE_STYLE_DOTTED, DJChartOptions.LINE_STYLE_DOUBLE).
|
DJLineChartBuilder |
setLineWidth(float lineWidth)
Sets the line width.
|
DJLineChartBuilder |
setLink(DJHyperLink link)
Sets the hyperlink.
|
DJLineChartBuilder |
setOperation(byte operation)
Sets the chart data operation (DJChart.CALCULATION_COUNT or DJChart.CALCULATION_SUM).
|
DJLineChartBuilder |
setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
Sets the plot orientation (PlotOrientation.HORIZONTAL or PlotOrientation.VERTICAL).
|
DJLineChartBuilder |
setPadding(int padding)
Sets the padding.
|
DJLineChartBuilder |
setPosition(byte position)
Sets the position (DJChartOptions.POSITION_FOOTER or DJChartOptions.POSITION_HEADER).
|
DJLineChartBuilder |
setSeriesColors(List seriesColors)
Set the specified series colors to the plot.
|
DJLineChartBuilder |
setShowLegend(boolean showLegend)
Sets the legend visibility.
|
DJLineChartBuilder |
setShowLines(boolean showLines)
Sets the lines visibility.
|
DJLineChartBuilder |
setShowShapes(boolean showShapes)
Sets the shapes visibility.
|
DJLineChartBuilder |
setSubtitle(String subtitle)
Sets the subtitle.
|
DJLineChartBuilder |
setSubtitle(StringExpression subtitleExpression)
Sets the subtitle expression.
|
DJLineChartBuilder |
setSubtitleColor(Color subtitleColor)
Sets the subtitle color.
|
DJLineChartBuilder |
setSubtitleFont(Font subtitleFont)
Sets the subtitle font.
|
DJLineChartBuilder |
setTheme(String theme)
Sets the theme.
|
DJLineChartBuilder |
setTitle(String title)
Sets the title.
|
DJLineChartBuilder |
setTitle(StringExpression titleExpression)
Sets the title expression.
|
DJLineChartBuilder |
setTitleColor(Color titleColor)
Sets the title color.
|
DJLineChartBuilder |
setTitleFont(Font titleFont)
Sets the title font.
|
DJLineChartBuilder |
setTitlePosition(byte titlePosition)
Sets the title position (DJChartOptions.EDGE_TOP, DJChartOptions.EDGE_BOTTOM, DJChartOptions.EDGE_LEFT, DJChartOptions.EDGE_RIGHT).
|
DJLineChartBuilder |
setUseSeriesAsCategory(boolean useSeriesAsCategory) |
DJLineChartBuilder |
setValueAxisFormat(DJAxisFormat valueAxisFormat)
Sets the value axis format.
|
DJLineChartBuilder |
setWidth(int width)
Sets the chart width.
|
DJLineChartBuilder |
setX(int x)
Sets the x position.
|
DJLineChartBuilder |
setY(int y)
Sets the y position.
|
build, setChartOptions, setColumnGrouppublic DJLineChartBuilder setOperation(byte operation)
setOperation in class AbstractChartBuilderoperation - the chart data operationpublic DJLineChartBuilder setLink(DJHyperLink link)
setLink in class AbstractChartBuilderlink - the hyperlinkpublic DJLineChartBuilder setBackColor(Color backColor)
setBackColor in class AbstractChartBuilderbackColor - the background colorpublic DJLineChartBuilder setHeight(int height)
setHeight in class AbstractChartBuilderheight - the chart heightpublic DJLineChartBuilder setWidth(int width)
setWidth in class AbstractChartBuilderwidth - the chart widthpublic DJLineChartBuilder setCentered(boolean centered)
setCentered in class AbstractChartBuildercentered - the centeredpublic DJLineChartBuilder setPosition(byte position)
setPosition in class AbstractChartBuilderposition - the positionpublic DJLineChartBuilder setY(int y)
setY in class AbstractChartBuildery - the y positionpublic DJLineChartBuilder setX(int x)
setX in class AbstractChartBuildery - the x positionpublic DJLineChartBuilder setShowLegend(boolean showLegend)
setShowLegend in class AbstractChartBuildershowLegend - the legend visibilitypublic DJLineChartBuilder setTitleColor(Color titleColor)
setTitleColor in class AbstractChartBuildertitleColor - the title colorpublic DJLineChartBuilder setSubtitleColor(Color subtitleColor)
setSubtitleColor in class AbstractChartBuildersubtitleColor - the subtitle colorpublic DJLineChartBuilder setLegendColor(Color legendColor)
setLegendColor in class AbstractChartBuilderlegendColor - the legend colorpublic DJLineChartBuilder setLegendBackgroundColor(Color legendBackgroundColor)
setLegendBackgroundColor in class AbstractChartBuilderlegendBackgroundColor - the legend background colorpublic DJLineChartBuilder setTheme(String theme)
setTheme in class AbstractChartBuildertheme - the themepublic DJLineChartBuilder setTitleFont(Font titleFont)
setTitleFont in class AbstractChartBuildertitleFont - the title fontpublic DJLineChartBuilder setSubtitleFont(Font subtitleFont)
setSubtitleFont in class AbstractChartBuildersubtitleFont - the subtitle fontpublic DJLineChartBuilder setLegendFont(Font legendFont)
setLegendFont in class AbstractChartBuilderlegendFont - the legend fontpublic DJLineChartBuilder setLegendPosition(byte legendPosition)
setLegendPosition in class AbstractChartBuilderlegendPosition - the legend positionpublic DJLineChartBuilder setTitlePosition(byte titlePosition)
setTitlePosition in class AbstractChartBuildertitlePosition - the title positionpublic DJLineChartBuilder setTitle(String title)
setTitle in class AbstractChartBuildertitle - the titlepublic DJLineChartBuilder setTitle(StringExpression titleExpression)
setTitle in class AbstractChartBuildertitleExpression - the title expressionpublic DJLineChartBuilder setSubtitle(String subtitle)
setSubtitle in class AbstractChartBuildersubtitle - the subtitlepublic DJLineChartBuilder setSubtitle(StringExpression subtitleExpression)
setSubtitle in class AbstractChartBuildersubtitleExpression - the subtitle expressionpublic DJLineChartBuilder setLineStyle(byte lineStyle)
setLineStyle in class AbstractChartBuilderlineStyle - one of the line style constants in DJChartOptions classpublic DJLineChartBuilder setLineWidth(float lineWidth)
setLineWidth in class AbstractChartBuilderlineWidth - the line widthpublic DJLineChartBuilder setLineColor(Color lineColor)
setLineColor in class AbstractChartBuilderlineColor - the line colorpublic DJLineChartBuilder setPadding(int padding)
setPadding in class AbstractChartBuilderpadding - the paddingpublic DJLineChartBuilder setCustomizerClass(String customizerClass)
setCustomizerClass in class AbstractChartBuilderJRChartCustomizerpublic DJLineChartBuilder setCategory(PropertyColumn category)
setCategory in class AbstractChartBuildercategory - the category columnpublic DJLineChartBuilder addSerie(AbstractColumn column)
addSerie in class AbstractChartBuildercolumn - the serie columnpublic DJLineChartBuilder addSerie(AbstractColumn column, String label)
column - the serie columnlabel - column the custom labelpublic DJLineChartBuilder addSerie(AbstractColumn column, StringExpression labelExpression)
column - the serie columnlabel - column the custom labelpublic DJLineChartBuilder setUseSeriesAsCategory(boolean useSeriesAsCategory)
public DJLineChartBuilder setLabelRotation(double labelRotation)
labelRotation - the label rotationpublic DJLineChartBuilder setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
orientation - the plot orientationpublic DJLineChartBuilder addSeriesColor(Color color)
addSeriesColor in class AbstractChartBuildercolor - the series colorpublic DJLineChartBuilder setSeriesColors(List seriesColors)
setSeriesColors in class AbstractChartBuilderseriesColors - the series colorspublic DJLineChartBuilder setCategoryAxisFormat(DJAxisFormat categoryAxisFormat)
categoryAxisFormat - the category axis formatpublic DJLineChartBuilder setValueAxisFormat(DJAxisFormat valueAxisFormat)
valueAxisFormat - the value axis formatpublic DJLineChartBuilder setShowShapes(boolean showShapes)
showShapes - the shapes visibilitypublic DJLineChartBuilder setShowLines(boolean showLines)
showLines - the lines visibilityprotected CategoryDataset getDataset()
getDataset in class AbstractChartBuilderprotected LinePlot getPlot()
getPlot in class AbstractChartBuilderprotected byte getChartType()
getChartType in class AbstractChartBuilderCopyright © 2006–2015 FDV Solutions. All rights reserved.