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