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