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

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

public class DJXYLineChartBuilder
extends AbstractChartBuilder


Field Summary
 
Fields inherited from class ar.com.fdvs.dj.domain.chart.builder.AbstractChartBuilder
chart
 
Constructor Summary
DJXYLineChartBuilder()
           
 
Method Summary
 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()
           
 DJXYLineChartBuilder setBackColor(Color backColor)
          Sets the background color.
 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.
 
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

DJXYLineChartBuilder

public DJXYLineChartBuilder()
Method Detail

setOperation

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

Parameters:
operation - the chart data operation

setLink

public DJXYLineChartBuilder setLink(DJHyperLink link)
Sets the hyperlink.

Parameters:
link - the hyperlink

setBackColor

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

Parameters:
backColor - the background color

setHeight

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

Parameters:
height - the chart height

setWidth

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

Parameters:
width - the chart width

setCentered

public DJXYLineChartBuilder setCentered(boolean centered)
Sets the centered.

Parameters:
centered - the centered

setPosition

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

Parameters:
position - the position

setY

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

Parameters:
y - the y position

setX

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

Parameters:
y - the x position

setShowLegend

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

Parameters:
showLegend - the legend visibility

setTitleColor

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

Parameters:
titleColor - the title color

setSubtitleColor

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

Parameters:
subtitleColor - the subtitle color

setLegendColor

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

Parameters:
legendColor - the legend color

setLegendBackgroundColor

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

Parameters:
legendBackgroundColor - the legend background color

setTheme

public DJXYLineChartBuilder 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 DJXYLineChartBuilder setTitleFont(Font titleFont)
Sets the title font.

Parameters:
titleFont - the title font

setSubtitleFont

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

Parameters:
subtitleFont - the subtitle font

setLegendFont

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

Parameters:
legendFont - the legend font

setLegendPosition

public DJXYLineChartBuilder 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 DJXYLineChartBuilder 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 DJXYLineChartBuilder setTitle(String title)
Sets the title.

Parameters:
title - the title

setTitle

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

Parameters:
titleExpression - the title expression

setSubtitle

public DJXYLineChartBuilder setSubtitle(String subtitle)
Sets the subtitle.

Parameters:
subtitle - the subtitle

setSubtitle

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

Parameters:
subtitleExpression - the subtitle expression

setLineStyle

public DJXYLineChartBuilder 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 DJXYLineChartBuilder setLineWidth(float lineWidth)
Sets the line width.

Parameters:
lineWidth - the line width

setLineColor

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

Parameters:
lineColor - the line color

setPadding

public DJXYLineChartBuilder setPadding(int padding)
Sets the padding.

Parameters:
padding - the padding

setCustomizerClass

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

See Also:
JRChartCustomizer

setXValue

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

Parameters:
xValue - the x value column

addSerie

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

Parameters:
column - the serie column

addSerie

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

Parameters:
orientation - the plot orientation

addSeriesColor

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

Parameters:
color - the series color

setSeriesColors

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

Parameters:
seriesColors - the series colors

setCategoryAxisFormat

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

Parameters:
categoryAxisFormat - the category axis format

setValueAxisFormat

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

Parameters:
valueAxisFormat - the value axis format

setShowShapes

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

Parameters:
showShapes - the shapes visibility

setShowLines

public DJXYLineChartBuilder 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.