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

java.lang.Object
  extended by ar.com.fdvs.dj.domain.chart.builder.AbstractChartBuilder<DJAreaChartBuilder>
      extended by ar.com.fdvs.dj.domain.chart.builder.DJAreaChartBuilder
Direct Known Subclasses:
DJStackedAreaChartBuilder

public class DJAreaChartBuilder
extends AbstractChartBuilder<DJAreaChartBuilder>


Field Summary
 
Fields inherited from class ar.com.fdvs.dj.domain.chart.builder.AbstractChartBuilder
chart
 
Constructor Summary
DJAreaChartBuilder()
           
 
Method Summary
 DJAreaChartBuilder addSerie(AbstractColumn column)
          Adds the specified serie column to the dataset.
 DJAreaChartBuilder addSerie(AbstractColumn column, java.lang.String label)
          Adds the specified serie column to the dataset with custom label.
 DJAreaChartBuilder addSerie(AbstractColumn column, StringExpression labelExpression)
          Adds the specified serie column to the dataset with custom label.
 DJAreaChartBuilder addSeriesColor(java.awt.Color color)
          Adds the specified series color to the plot.
protected  byte getChartType()
           
protected  CategoryDataset getDataset()
           
protected  AreaPlot getPlot()
           
 DJAreaChartBuilder setBackColor(java.awt.Color backColor)
          Sets the background color.
 DJAreaChartBuilder setCategory(PropertyColumn category)
          Sets the category column.
 DJAreaChartBuilder setCategoryAxisFormat(DJAxisFormat categoryAxisFormat)
          Sets the category axis format.
 DJAreaChartBuilder setCentered(boolean centered)
          Sets the centered.
 DJAreaChartBuilder setCustomizerClass(java.lang.String customizerClass)
          Sets a user specified chart customizer class name.
 DJAreaChartBuilder setHeight(int height)
          Sets the chart height.
 DJAreaChartBuilder setLabelRotation(double labelRotation)
          Sets the angle in degrees to rotate the data axis labels.
 DJAreaChartBuilder setLegendBackgroundColor(java.awt.Color legendBackgroundColor)
          Sets the legend background color.
 DJAreaChartBuilder setLegendColor(java.awt.Color legendColor)
          Sets the legend color.
 DJAreaChartBuilder setLegendFont(Font legendFont)
          Sets the legend font.
 DJAreaChartBuilder setLegendPosition(byte legendPosition)
          Sets the legend position (DJChartOptions.EDGE_TOP, DJChartOptions.EDGE_BOTTOM, DJChartOptions.EDGE_LEFT, DJChartOptions.EDGE_RIGHT).
 DJAreaChartBuilder setLineColor(java.awt.Color lineColor)
          Sets the line color.
 DJAreaChartBuilder setLineStyle(byte lineStyle)
          Sets the line style (DJChartOptions.LINE_STYLE_SOLID, DJChartOptions.LINE_STYLE_DASHED, DJChartOptions.LINE_STYLE_DOTTED, DJChartOptions.LINE_STYLE_DOUBLE).
 DJAreaChartBuilder setLineWidth(float lineWidth)
          Sets the line width.
 DJAreaChartBuilder setLink(DJHyperLink link)
          Sets the hyperlink.
 DJAreaChartBuilder setOperation(byte operation)
          Sets the chart data operation (DJChart.CALCULATION_COUNT or DJChart.CALCULATION_SUM).
 DJAreaChartBuilder setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
          Sets the plot orientation (PlotOrientation.HORIZONTAL or PlotOrientation.VERTICAL).
 DJAreaChartBuilder setPadding(int padding)
          Sets the padding.
 DJAreaChartBuilder setPosition(byte position)
          Sets the position (DJChartOptions.POSITION_FOOTER or DJChartOptions.POSITION_HEADER).
 DJAreaChartBuilder setSeriesColors(java.util.List seriesColors)
          Set the specified series colors to the plot.
 DJAreaChartBuilder setShowLegend(boolean showLegend)
          Sets the legend visibility.
 DJAreaChartBuilder setSubtitle(java.lang.String subtitle)
          Sets the subtitle.
 DJAreaChartBuilder setSubtitle(StringExpression subtitleExpression)
          Sets the subtitle expression.
 DJAreaChartBuilder setSubtitleColor(java.awt.Color subtitleColor)
          Sets the subtitle color.
 DJAreaChartBuilder setSubtitleFont(Font subtitleFont)
          Sets the subtitle font.
 DJAreaChartBuilder setTheme(java.lang.String theme)
          Sets the theme.
 DJAreaChartBuilder setTitle(java.lang.String title)
          Sets the title.
 DJAreaChartBuilder setTitle(StringExpression titleExpression)
          Sets the title expression.
 DJAreaChartBuilder setTitleColor(java.awt.Color titleColor)
          Sets the title color.
 DJAreaChartBuilder setTitleFont(Font titleFont)
          Sets the title font.
 DJAreaChartBuilder setTitlePosition(byte titlePosition)
          Sets the title position (DJChartOptions.EDGE_TOP, DJChartOptions.EDGE_BOTTOM, DJChartOptions.EDGE_LEFT, DJChartOptions.EDGE_RIGHT).
 DJAreaChartBuilder setUseSeriesAsCategory(boolean useSeriesAsCategory)
           
 DJAreaChartBuilder setValueAxisFormat(DJAxisFormat valueAxisFormat)
          Sets the value axis format.
 DJAreaChartBuilder setWidth(int width)
          Sets the chart width.
 DJAreaChartBuilder setX(int x)
          Sets the x position.
 DJAreaChartBuilder setY(int y)
          Sets the y position.
 
Methods inherited from class ar.com.fdvs.dj.domain.chart.builder.AbstractChartBuilder
build, setChartOptions, setColumnGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DJAreaChartBuilder

public DJAreaChartBuilder()
Method Detail

setOperation

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

Specified by:
setOperation in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
operation - the chart data operation

setLink

public DJAreaChartBuilder setLink(DJHyperLink link)
Sets the hyperlink.

Specified by:
setLink in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
link - the hyperlink

setBackColor

public DJAreaChartBuilder setBackColor(java.awt.Color backColor)
Sets the background color.

Specified by:
setBackColor in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
backColor - the background color

setHeight

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

Specified by:
setHeight in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
height - the chart height

setWidth

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

Specified by:
setWidth in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
width - the chart width

setCentered

public DJAreaChartBuilder setCentered(boolean centered)
Sets the centered.

Specified by:
setCentered in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
centered - the centered

setPosition

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

Specified by:
setPosition in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
position - the position

setY

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

Specified by:
setY in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
y - the y position

setX

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

Specified by:
setX in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
y - the x position

setShowLegend

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

Specified by:
setShowLegend in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
showLegend - the legend visibility

setTitleColor

public DJAreaChartBuilder setTitleColor(java.awt.Color titleColor)
Sets the title color.

Specified by:
setTitleColor in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
titleColor - the title color

setSubtitleColor

public DJAreaChartBuilder setSubtitleColor(java.awt.Color subtitleColor)
Sets the subtitle color.

Specified by:
setSubtitleColor in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
subtitleColor - the subtitle color

setLegendColor

public DJAreaChartBuilder setLegendColor(java.awt.Color legendColor)
Sets the legend color.

Specified by:
setLegendColor in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
legendColor - the legend color

setLegendBackgroundColor

public DJAreaChartBuilder setLegendBackgroundColor(java.awt.Color legendBackgroundColor)
Sets the legend background color.

Specified by:
setLegendBackgroundColor in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
legendBackgroundColor - the legend background color

setTheme

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

Specified by:
setTheme in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
theme - the theme

setTitleFont

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

Specified by:
setTitleFont in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
titleFont - the title font

setSubtitleFont

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

Specified by:
setSubtitleFont in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
subtitleFont - the subtitle font

setLegendFont

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

Specified by:
setLegendFont in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
legendFont - the legend font

setLegendPosition

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

Specified by:
setLegendPosition in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
legendPosition - the legend position

setTitlePosition

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

Specified by:
setTitlePosition in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
titlePosition - the title position

setTitle

public DJAreaChartBuilder setTitle(java.lang.String title)
Sets the title.

Specified by:
setTitle in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
title - the title

setTitle

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

Specified by:
setTitle in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
titleExpression - the title expression

setSubtitle

public DJAreaChartBuilder setSubtitle(java.lang.String subtitle)
Sets the subtitle.

Specified by:
setSubtitle in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
subtitle - the subtitle

setSubtitle

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

Specified by:
setSubtitle in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
subtitleExpression - the subtitle expression

setLineStyle

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

Specified by:
setLineStyle in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
lineStyle - one of the line style constants in DJChartOptions class

setLineWidth

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

Specified by:
setLineWidth in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
lineWidth - the line width

setLineColor

public DJAreaChartBuilder setLineColor(java.awt.Color lineColor)
Sets the line color.

Specified by:
setLineColor in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
lineColor - the line color

setPadding

public DJAreaChartBuilder setPadding(int padding)
Sets the padding.

Specified by:
setPadding in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
padding - the padding

setCustomizerClass

public DJAreaChartBuilder setCustomizerClass(java.lang.String customizerClass)
Sets a user specified chart customizer class name.

Specified by:
setCustomizerClass in class AbstractChartBuilder<DJAreaChartBuilder>
See Also:
JRChartCustomizer

setCategory

public DJAreaChartBuilder setCategory(PropertyColumn category)
Sets the category column.

Specified by:
setCategory in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
category - the category column

addSerie

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

Specified by:
addSerie in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
column - the serie column

addSerie

public DJAreaChartBuilder addSerie(AbstractColumn column,
                                   java.lang.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 DJAreaChartBuilder 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

setUseSeriesAsCategory

public DJAreaChartBuilder setUseSeriesAsCategory(boolean useSeriesAsCategory)

setLabelRotation

public DJAreaChartBuilder 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 DJAreaChartBuilder setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
Sets the plot orientation (PlotOrientation.HORIZONTAL or PlotOrientation.VERTICAL).

Parameters:
orientation - the plot orientation

addSeriesColor

public DJAreaChartBuilder addSeriesColor(java.awt.Color color)
Adds the specified series color to the plot.

Specified by:
addSeriesColor in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
color - the series color

setSeriesColors

public DJAreaChartBuilder setSeriesColors(java.util.List seriesColors)
Set the specified series colors to the plot.

Specified by:
setSeriesColors in class AbstractChartBuilder<DJAreaChartBuilder>
Parameters:
seriesColors - the series colors

setCategoryAxisFormat

public DJAreaChartBuilder setCategoryAxisFormat(DJAxisFormat categoryAxisFormat)
Sets the category axis format.

Parameters:
categoryAxisFormat - the category axis format

setValueAxisFormat

public DJAreaChartBuilder setValueAxisFormat(DJAxisFormat valueAxisFormat)
Sets the value axis format.

Parameters:
valueAxisFormat - the value axis format

getDataset

protected CategoryDataset getDataset()
Specified by:
getDataset in class AbstractChartBuilder<DJAreaChartBuilder>

getPlot

protected AreaPlot getPlot()
Specified by:
getPlot in class AbstractChartBuilder<DJAreaChartBuilder>

getChartType

protected byte getChartType()
Specified by:
getChartType in class AbstractChartBuilder<DJAreaChartBuilder>


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