ar.com.fdvs.dj.domain.chart.builder
Class DJScatterChartBuilder

java.lang.Object
  extended by ar.com.fdvs.dj.domain.chart.builder.AbstractChartBuilder
      extended by ar.com.fdvs.dj.domain.chart.builder.DJScatterChartBuilder

public class DJScatterChartBuilder
extends AbstractChartBuilder


Field Summary
 
Fields inherited from class ar.com.fdvs.dj.domain.chart.builder.AbstractChartBuilder
chart
 
Constructor Summary
DJScatterChartBuilder()
           
 
Method Summary
 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()
           
 DJScatterChartBuilder setBackColor(Color backColor)
          Sets the background color.
 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.
 
Methods inherited from class ar.com.fdvs.dj.domain.chart.builder.AbstractChartBuilder
build
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DJScatterChartBuilder

public DJScatterChartBuilder()
Method Detail

setOperation

public DJScatterChartBuilder setOperation(byte operation)
Sets the chart data operation (DJChart.CALCULATION_COUNT or DJChart.CALCULATION_SUM).

Parameters:
operation - the chart data operation

setLink

public DJScatterChartBuilder setLink(DJHyperLink link)
Sets the hyperlink.

Parameters:
link - the hyperlink

setBackColor

public DJScatterChartBuilder setBackColor(Color backColor)
Sets the background color.

Parameters:
backColor - the background color

setHeight

public DJScatterChartBuilder setHeight(int height)
Sets the chart height.

Parameters:
height - the chart height

setWidth

public DJScatterChartBuilder setWidth(int width)
Sets the chart width.

Parameters:
width - the chart width

setCentered

public DJScatterChartBuilder setCentered(boolean centered)
Sets the centered.

Parameters:
centered - the centered

setPosition

public DJScatterChartBuilder setPosition(byte position)
Sets the position (DJChartOptions.POSITION_FOOTER or DJChartOptions.POSITION_HEADER).

Parameters:
position - the position

setY

public DJScatterChartBuilder setY(int y)
Sets the y position.

Parameters:
y - the y position

setX

public DJScatterChartBuilder setX(int x)
Sets the x position.

Parameters:
y - the x position

setShowLegend

public DJScatterChartBuilder setShowLegend(boolean showLegend)
Sets the legend visibility.

Parameters:
showLegend - the legend visibility

setTitleColor

public DJScatterChartBuilder setTitleColor(Color titleColor)
Sets the title color.

Parameters:
titleColor - the title color

setSubtitleColor

public DJScatterChartBuilder setSubtitleColor(Color subtitleColor)
Sets the subtitle color.

Parameters:
subtitleColor - the subtitle color

setLegendColor

public DJScatterChartBuilder setLegendColor(Color legendColor)
Sets the legend color.

Parameters:
legendColor - the legend color

setLegendBackgroundColor

public DJScatterChartBuilder setLegendBackgroundColor(Color legendBackgroundColor)
Sets the legend background color.

Parameters:
legendBackgroundColor - the legend background color

setTheme

public DJScatterChartBuilder setTheme(String theme)
Sets the theme. Chart themes support to allow changing the overall appearance of charts generated with the build-in chart element

Parameters:
theme - the theme

setTitleFont

public DJScatterChartBuilder setTitleFont(Font titleFont)
Sets the title font.

Parameters:
titleFont - the title font

setSubtitleFont

public DJScatterChartBuilder setSubtitleFont(Font subtitleFont)
Sets the subtitle font.

Parameters:
subtitleFont - the subtitle font

setLegendFont

public DJScatterChartBuilder setLegendFont(Font legendFont)
Sets the legend font.

Parameters:
legendFont - the legend font

setLegendPosition

public DJScatterChartBuilder setLegendPosition(byte legendPosition)
Sets the legend position (DJChartOptions.EDGE_TOP, DJChartOptions.EDGE_BOTTOM, DJChartOptions.EDGE_LEFT, DJChartOptions.EDGE_RIGHT).

Parameters:
legendPosition - the legend position

setTitlePosition

public DJScatterChartBuilder setTitlePosition(byte titlePosition)
Sets the title position (DJChartOptions.EDGE_TOP, DJChartOptions.EDGE_BOTTOM, DJChartOptions.EDGE_LEFT, DJChartOptions.EDGE_RIGHT).

Parameters:
titlePosition - the title position

setTitle

public DJScatterChartBuilder setTitle(String title)
Sets the title.

Parameters:
title - the title

setTitle

public DJScatterChartBuilder setTitle(StringExpression titleExpression)
Sets the title expression.

Parameters:
titleExpression - the title expression

setSubtitle

public DJScatterChartBuilder setSubtitle(String subtitle)
Sets the subtitle.

Parameters:
subtitle - the subtitle

setSubtitle

public DJScatterChartBuilder setSubtitle(StringExpression subtitleExpression)
Sets the subtitle expression.

Parameters:
subtitleExpression - the subtitle expression

setLineStyle

public DJScatterChartBuilder setLineStyle(byte lineStyle)
Sets the line style (DJChartOptions.LINE_STYLE_SOLID, DJChartOptions.LINE_STYLE_DASHED, DJChartOptions.LINE_STYLE_DOTTED, DJChartOptions.LINE_STYLE_DOUBLE).

Parameters:
lineStyle - one of the line style constants in DJChartOptions class

setLineWidth

public DJScatterChartBuilder setLineWidth(float lineWidth)
Sets the line width.

Parameters:
lineWidth - the line width

setLineColor

public DJScatterChartBuilder setLineColor(Color lineColor)
Sets the line color.

Parameters:
lineColor - the line color

setPadding

public DJScatterChartBuilder setPadding(int padding)
Sets the padding.

Parameters:
padding - the padding

setCustomizerClass

public DJScatterChartBuilder setCustomizerClass(String customizerClass)
Sets a user specified chart customizer class name.

See Also:
JRChartCustomizer

setXValue

public DJScatterChartBuilder setXValue(PropertyColumn xValue)
Sets the x value column.

Parameters:
xValue - the x value column

addSerie

public DJScatterChartBuilder addSerie(AbstractColumn column)
Adds the specified serie column to the dataset.

Parameters:
column - the serie column

addSerie

public DJScatterChartBuilder addSerie(AbstractColumn column,
                                      String label)
Adds the specified serie column to the dataset with custom label.

Parameters:
column - the serie column
label - column the custom label

addSerie

public DJScatterChartBuilder addSerie(AbstractColumn column,
                                      StringExpression labelExpression)
Adds the specified serie column to the dataset with custom label.

Parameters:
column - the serie column
label - column the custom label

setLabelRotation

public DJScatterChartBuilder setLabelRotation(double labelRotation)
Sets the angle in degrees to rotate the data axis labels. The range is -360 to 360. A positive value angles the label so it reads downwards wile a negative value angles the label so it reads upwards. Only charts that use a category based axis (such as line or bar charts) support label rotation.

Parameters:
labelRotation - the label rotation

setOrientation

public DJScatterChartBuilder setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
Sets the plot orientation (PlotOrientation.HORIZONTAL or PlotOrientation.VERTICAL).

Parameters:
orientation - the plot orientation

addSeriesColor

public DJScatterChartBuilder addSeriesColor(Color color)
Adds the specified series color to the plot.

Parameters:
color - the series color

setSeriesColors

public DJScatterChartBuilder setSeriesColors(List seriesColors)
Set the specified series colors to the plot.

Parameters:
seriesColors - the series colors

setXAxisFormat

public DJScatterChartBuilder setXAxisFormat(DJAxisFormat xAxisFormat)
Sets the x axis format.

Parameters:
xAxisFormat - the x axis format

setYAxisFormat

public DJScatterChartBuilder setYAxisFormat(DJAxisFormat yAxisFormat)
Sets the y axis format.

Parameters:
yAxisFormat - the y axis format

setShowShapes

public DJScatterChartBuilder setShowShapes(boolean showShapes)
Sets the shapes visibility.

Parameters:
showShapes - the shapes visibility

setShowLines

public DJScatterChartBuilder setShowLines(boolean showLines)
Sets the lines visibility.

Parameters:
showLines - the lines visibility

getChartType

protected byte getChartType()
Specified by:
getChartType in class AbstractChartBuilder


Copyright © 2006-2009 FDV Solutions. All Rights Reserved.