public class DJLineChartBuilder extends AbstractChartBuilder<DJLineChartBuilder>
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<Color> 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 AbstractChartBuilder<DJLineChartBuilder>operation - the chart data operationpublic DJLineChartBuilder setLink(DJHyperLink link)
setLink in class AbstractChartBuilder<DJLineChartBuilder>link - the hyperlinkpublic DJLineChartBuilder setBackColor(Color backColor)
setBackColor in class AbstractChartBuilder<DJLineChartBuilder>backColor - the background colorpublic DJLineChartBuilder setHeight(int height)
setHeight in class AbstractChartBuilder<DJLineChartBuilder>height - the chart heightpublic DJLineChartBuilder setWidth(int width)
setWidth in class AbstractChartBuilder<DJLineChartBuilder>width - the chart widthpublic DJLineChartBuilder setCentered(boolean centered)
setCentered in class AbstractChartBuilder<DJLineChartBuilder>centered - the centeredpublic DJLineChartBuilder setPosition(byte position)
setPosition in class AbstractChartBuilder<DJLineChartBuilder>position - the positionpublic DJLineChartBuilder setY(int y)
setY in class AbstractChartBuilder<DJLineChartBuilder>y - the y positionpublic DJLineChartBuilder setX(int x)
setX in class AbstractChartBuilder<DJLineChartBuilder>public DJLineChartBuilder setShowLegend(boolean showLegend)
setShowLegend in class AbstractChartBuilder<DJLineChartBuilder>showLegend - the legend visibilitypublic DJLineChartBuilder setTitleColor(Color titleColor)
setTitleColor in class AbstractChartBuilder<DJLineChartBuilder>titleColor - the title colorpublic DJLineChartBuilder setSubtitleColor(Color subtitleColor)
setSubtitleColor in class AbstractChartBuilder<DJLineChartBuilder>subtitleColor - the subtitle colorpublic DJLineChartBuilder setLegendColor(Color legendColor)
setLegendColor in class AbstractChartBuilder<DJLineChartBuilder>legendColor - the legend colorpublic DJLineChartBuilder setLegendBackgroundColor(Color legendBackgroundColor)
setLegendBackgroundColor in class AbstractChartBuilder<DJLineChartBuilder>legendBackgroundColor - the legend background colorpublic DJLineChartBuilder setTheme(String theme)
setTheme in class AbstractChartBuilder<DJLineChartBuilder>theme - the themepublic DJLineChartBuilder setTitleFont(Font titleFont)
setTitleFont in class AbstractChartBuilder<DJLineChartBuilder>titleFont - the title fontpublic DJLineChartBuilder setSubtitleFont(Font subtitleFont)
setSubtitleFont in class AbstractChartBuilder<DJLineChartBuilder>subtitleFont - the subtitle fontpublic DJLineChartBuilder setLegendFont(Font legendFont)
setLegendFont in class AbstractChartBuilder<DJLineChartBuilder>legendFont - the legend fontpublic DJLineChartBuilder setLegendPosition(byte legendPosition)
setLegendPosition in class AbstractChartBuilder<DJLineChartBuilder>legendPosition - the legend positionpublic DJLineChartBuilder setTitlePosition(byte titlePosition)
setTitlePosition in class AbstractChartBuilder<DJLineChartBuilder>titlePosition - the title positionpublic DJLineChartBuilder setTitle(String title)
setTitle in class AbstractChartBuilder<DJLineChartBuilder>title - the titlepublic DJLineChartBuilder setTitle(StringExpression titleExpression)
setTitle in class AbstractChartBuilder<DJLineChartBuilder>titleExpression - the title expressionpublic DJLineChartBuilder setSubtitle(String subtitle)
setSubtitle in class AbstractChartBuilder<DJLineChartBuilder>subtitle - the subtitlepublic DJLineChartBuilder setSubtitle(StringExpression subtitleExpression)
setSubtitle in class AbstractChartBuilder<DJLineChartBuilder>subtitleExpression - the subtitle expressionpublic DJLineChartBuilder setLineStyle(byte lineStyle)
setLineStyle in class AbstractChartBuilder<DJLineChartBuilder>lineStyle - one of the line style constants in DJChartOptions classpublic DJLineChartBuilder setLineWidth(float lineWidth)
setLineWidth in class AbstractChartBuilder<DJLineChartBuilder>lineWidth - the line widthpublic DJLineChartBuilder setLineColor(Color lineColor)
setLineColor in class AbstractChartBuilder<DJLineChartBuilder>lineColor - the line colorpublic DJLineChartBuilder setPadding(int padding)
setPadding in class AbstractChartBuilder<DJLineChartBuilder>padding - the paddingpublic DJLineChartBuilder setCustomizerClass(String customizerClass)
setCustomizerClass in class AbstractChartBuilder<DJLineChartBuilder>JRChartCustomizerpublic DJLineChartBuilder setCategory(PropertyColumn category)
setCategory in class AbstractChartBuilder<DJLineChartBuilder>category - the category columnpublic DJLineChartBuilder addSerie(AbstractColumn column)
addSerie in class AbstractChartBuilder<DJLineChartBuilder>column - 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 columnpublic 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 AbstractChartBuilder<DJLineChartBuilder>color - the series colorpublic DJLineChartBuilder setSeriesColors(List<Color> seriesColors)
setSeriesColors in class AbstractChartBuilder<DJLineChartBuilder>seriesColors - 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 AbstractChartBuilder<DJLineChartBuilder>protected LinePlot getPlot()
getPlot in class AbstractChartBuilder<DJLineChartBuilder>protected byte getChartType()
getChartType in class AbstractChartBuilder<DJLineChartBuilder>Copyright © 2006–2022 FDV Solutions. All rights reserved.