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