|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectar.com.fdvs.dj.domain.chart.builder.AbstractChartBuilder
ar.com.fdvs.dj.domain.chart.builder.DJTimeSeriesChartBuilder
public class DJTimeSeriesChartBuilder
Field Summary |
---|
Fields inherited from class ar.com.fdvs.dj.domain.chart.builder.AbstractChartBuilder |
---|
chart |
Constructor Summary | |
---|---|
DJTimeSeriesChartBuilder()
|
Method Summary | |
---|---|
DJTimeSeriesChartBuilder |
addSerie(AbstractColumn column)
Adds the specified serie column to the dataset. |
DJTimeSeriesChartBuilder |
addSerie(AbstractColumn column,
java.lang.String label)
Adds the specified serie column to the dataset with custom label. |
DJTimeSeriesChartBuilder |
addSerie(AbstractColumn column,
StringExpression labelExpression)
Adds the specified serie column to the dataset with custom label. |
DJTimeSeriesChartBuilder |
addSeriesColor(java.awt.Color color)
Adds the specified series color to the plot. |
protected byte |
getChartType()
|
protected TimeSeriesDataset |
getDataset()
|
protected TimeSeriesPlot |
getPlot()
|
DJTimeSeriesChartBuilder |
setBackColor(java.awt.Color backColor)
Sets the background color. |
protected DJTimeSeriesChartBuilder |
setCategory(PropertyColumn timePeriod)
Allows AbstractChartBuilder to set the key column |
DJTimeSeriesChartBuilder |
setCentered(boolean centered)
Sets the centered. |
DJTimeSeriesChartBuilder |
setCustomizerClass(java.lang.String customizerClass)
Sets a user specified chart customizer class name. |
DJTimeSeriesChartBuilder |
setHeight(int height)
Sets the chart height. |
DJTimeSeriesChartBuilder |
setLabelRotation(double labelRotation)
Sets the angle in degrees to rotate the data axis labels. |
DJTimeSeriesChartBuilder |
setLegendBackgroundColor(java.awt.Color legendBackgroundColor)
Sets the legend background color. |
DJTimeSeriesChartBuilder |
setLegendColor(java.awt.Color legendColor)
Sets the legend color. |
DJTimeSeriesChartBuilder |
setLegendFont(Font legendFont)
Sets the legend font. |
DJTimeSeriesChartBuilder |
setLegendPosition(byte legendPosition)
Sets the legend position (DJChartOptions.EDGE_TOP, DJChartOptions.EDGE_BOTTOM, DJChartOptions.EDGE_LEFT, DJChartOptions.EDGE_RIGHT). |
DJTimeSeriesChartBuilder |
setLineColor(java.awt.Color lineColor)
Sets the line color. |
DJTimeSeriesChartBuilder |
setLineStyle(byte lineStyle)
Sets the line style (DJChartOptions.LINE_STYLE_SOLID, DJChartOptions.LINE_STYLE_DASHED, DJChartOptions.LINE_STYLE_DOTTED, DJChartOptions.LINE_STYLE_DOUBLE). |
DJTimeSeriesChartBuilder |
setLineWidth(float lineWidth)
Sets the line width. |
DJTimeSeriesChartBuilder |
setLink(DJHyperLink link)
Sets the hyperlink. |
DJTimeSeriesChartBuilder |
setOperation(byte operation)
Sets the chart data operation (DJChart.CALCULATION_COUNT or DJChart.CALCULATION_SUM). |
DJTimeSeriesChartBuilder |
setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
Sets the plot orientation (PlotOrientation.HORIZONTAL or PlotOrientation.VERTICAL). |
DJTimeSeriesChartBuilder |
setPadding(int padding)
Sets the padding. |
DJTimeSeriesChartBuilder |
setPosition(byte position)
Sets the position (DJChartOptions.POSITION_FOOTER or DJChartOptions.POSITION_HEADER). |
DJTimeSeriesChartBuilder |
setSeriesColors(java.util.List seriesColors)
Set the specified series colors to the plot. |
DJTimeSeriesChartBuilder |
setShowLegend(boolean showLegend)
Sets the legend visibility. |
DJTimeSeriesChartBuilder |
setShowLines(boolean showLines)
Sets the lines visibility. |
DJTimeSeriesChartBuilder |
setShowShapes(boolean showShapes)
Sets the shapes visibility. |
DJTimeSeriesChartBuilder |
setSubtitle(java.lang.String subtitle)
Sets the subtitle. |
DJTimeSeriesChartBuilder |
setSubtitle(StringExpression subtitleExpression)
Sets the subtitle expression. |
DJTimeSeriesChartBuilder |
setSubtitleColor(java.awt.Color subtitleColor)
Sets the subtitle color. |
DJTimeSeriesChartBuilder |
setSubtitleFont(Font subtitleFont)
Sets the subtitle font. |
DJTimeSeriesChartBuilder |
setTheme(java.lang.String theme)
Sets the theme. |
DJTimeSeriesChartBuilder |
setTimeAxisFormat(DJAxisFormat timeAxisFormat)
Sets the time axis format. |
DJTimeSeriesChartBuilder |
setTimePeriod(PropertyColumn timePeriod)
Sets the time period column. |
DJTimeSeriesChartBuilder |
setTimePeriodClass(java.lang.Class timePeriodClass)
Sets the time period class (YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND). |
DJTimeSeriesChartBuilder |
setTitle(java.lang.String title)
Sets the title. |
DJTimeSeriesChartBuilder |
setTitle(StringExpression titleExpression)
Sets the title expression. |
DJTimeSeriesChartBuilder |
setTitleColor(java.awt.Color titleColor)
Sets the title color. |
DJTimeSeriesChartBuilder |
setTitleFont(Font titleFont)
Sets the title font. |
DJTimeSeriesChartBuilder |
setTitlePosition(byte titlePosition)
Sets the title position (DJChartOptions.EDGE_TOP, DJChartOptions.EDGE_BOTTOM, DJChartOptions.EDGE_LEFT, DJChartOptions.EDGE_RIGHT). |
DJTimeSeriesChartBuilder |
setValueAxisFormat(DJAxisFormat valueAxisFormat)
Sets the value axis format. |
DJTimeSeriesChartBuilder |
setWidth(int width)
Sets the chart width. |
DJTimeSeriesChartBuilder |
setX(int x)
Sets the x position. |
DJTimeSeriesChartBuilder |
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 |
---|
public DJTimeSeriesChartBuilder()
Method Detail |
---|
public DJTimeSeriesChartBuilder setOperation(byte operation)
setOperation
in class AbstractChartBuilder
operation
- the chart data operationpublic DJTimeSeriesChartBuilder setLink(DJHyperLink link)
setLink
in class AbstractChartBuilder
link
- the hyperlinkpublic DJTimeSeriesChartBuilder setBackColor(java.awt.Color backColor)
setBackColor
in class AbstractChartBuilder
backColor
- the background colorpublic DJTimeSeriesChartBuilder setHeight(int height)
setHeight
in class AbstractChartBuilder
height
- the chart heightpublic DJTimeSeriesChartBuilder setWidth(int width)
setWidth
in class AbstractChartBuilder
width
- the chart widthpublic DJTimeSeriesChartBuilder setCentered(boolean centered)
setCentered
in class AbstractChartBuilder
centered
- the centeredpublic DJTimeSeriesChartBuilder setPosition(byte position)
setPosition
in class AbstractChartBuilder
position
- the positionpublic DJTimeSeriesChartBuilder setY(int y)
setY
in class AbstractChartBuilder
y
- the y positionpublic DJTimeSeriesChartBuilder setX(int x)
setX
in class AbstractChartBuilder
y
- the x positionpublic DJTimeSeriesChartBuilder setShowLegend(boolean showLegend)
setShowLegend
in class AbstractChartBuilder
showLegend
- the legend visibilitypublic DJTimeSeriesChartBuilder setTitleColor(java.awt.Color titleColor)
setTitleColor
in class AbstractChartBuilder
titleColor
- the title colorpublic DJTimeSeriesChartBuilder setSubtitleColor(java.awt.Color subtitleColor)
setSubtitleColor
in class AbstractChartBuilder
subtitleColor
- the subtitle colorpublic DJTimeSeriesChartBuilder setLegendColor(java.awt.Color legendColor)
setLegendColor
in class AbstractChartBuilder
legendColor
- the legend colorpublic DJTimeSeriesChartBuilder setLegendBackgroundColor(java.awt.Color legendBackgroundColor)
setLegendBackgroundColor
in class AbstractChartBuilder
legendBackgroundColor
- the legend background colorpublic DJTimeSeriesChartBuilder setTheme(java.lang.String theme)
setTheme
in class AbstractChartBuilder
theme
- the themepublic DJTimeSeriesChartBuilder setTitleFont(Font titleFont)
setTitleFont
in class AbstractChartBuilder
titleFont
- the title fontpublic DJTimeSeriesChartBuilder setSubtitleFont(Font subtitleFont)
setSubtitleFont
in class AbstractChartBuilder
subtitleFont
- the subtitle fontpublic DJTimeSeriesChartBuilder setLegendFont(Font legendFont)
setLegendFont
in class AbstractChartBuilder
legendFont
- the legend fontpublic DJTimeSeriesChartBuilder setLegendPosition(byte legendPosition)
setLegendPosition
in class AbstractChartBuilder
legendPosition
- the legend positionpublic DJTimeSeriesChartBuilder setTitlePosition(byte titlePosition)
setTitlePosition
in class AbstractChartBuilder
titlePosition
- the title positionpublic DJTimeSeriesChartBuilder setTitle(java.lang.String title)
setTitle
in class AbstractChartBuilder
title
- the titlepublic DJTimeSeriesChartBuilder setTitle(StringExpression titleExpression)
setTitle
in class AbstractChartBuilder
titleExpression
- the title expressionpublic DJTimeSeriesChartBuilder setSubtitle(java.lang.String subtitle)
setSubtitle
in class AbstractChartBuilder
subtitle
- the subtitlepublic DJTimeSeriesChartBuilder setSubtitle(StringExpression subtitleExpression)
setSubtitle
in class AbstractChartBuilder
subtitleExpression
- the subtitle expressionpublic DJTimeSeriesChartBuilder setLineStyle(byte lineStyle)
setLineStyle
in class AbstractChartBuilder
lineStyle
- one of the line style constants in DJChartOptions classpublic DJTimeSeriesChartBuilder setLineWidth(float lineWidth)
setLineWidth
in class AbstractChartBuilder
lineWidth
- the line widthpublic DJTimeSeriesChartBuilder setLineColor(java.awt.Color lineColor)
setLineColor
in class AbstractChartBuilder
lineColor
- the line colorpublic DJTimeSeriesChartBuilder setPadding(int padding)
setPadding
in class AbstractChartBuilder
padding
- the paddingpublic DJTimeSeriesChartBuilder setCustomizerClass(java.lang.String customizerClass)
setCustomizerClass
in class AbstractChartBuilder
JRChartCustomizer
protected DJTimeSeriesChartBuilder setCategory(PropertyColumn timePeriod)
setCategory
in class AbstractChartBuilder
public DJTimeSeriesChartBuilder setTimePeriod(PropertyColumn timePeriod)
timePeriod
- the time period columnpublic DJTimeSeriesChartBuilder addSerie(AbstractColumn column)
addSerie
in class AbstractChartBuilder
column
- the serie columnpublic DJTimeSeriesChartBuilder addSerie(AbstractColumn column, java.lang.String label)
column
- the serie columnlabel
- column the custom labelpublic DJTimeSeriesChartBuilder addSerie(AbstractColumn column, StringExpression labelExpression)
column
- the serie columnlabel
- column the custom labelpublic DJTimeSeriesChartBuilder setTimePeriodClass(java.lang.Class timePeriodClass)
timePeriodClass
- one of the time period class constants in TimeSeriesDataset classpublic DJTimeSeriesChartBuilder setLabelRotation(double labelRotation)
labelRotation
- the label rotationpublic DJTimeSeriesChartBuilder setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
orientation
- the plot orientationpublic DJTimeSeriesChartBuilder addSeriesColor(java.awt.Color color)
addSeriesColor
in class AbstractChartBuilder
color
- the series colorpublic DJTimeSeriesChartBuilder setSeriesColors(java.util.List seriesColors)
setSeriesColors
in class AbstractChartBuilder
seriesColors
- the series colorspublic DJTimeSeriesChartBuilder setTimeAxisFormat(DJAxisFormat timeAxisFormat)
timeAxisFormat
- the time axis formatpublic DJTimeSeriesChartBuilder setValueAxisFormat(DJAxisFormat valueAxisFormat)
valueAxisFormat
- the value axis formatpublic DJTimeSeriesChartBuilder setShowShapes(boolean showShapes)
showShapes
- the shapes visibilitypublic DJTimeSeriesChartBuilder setShowLines(boolean showLines)
showLines
- the lines visibilityprotected TimeSeriesDataset getDataset()
getDataset
in class AbstractChartBuilder
protected TimeSeriesPlot getPlot()
getPlot
in class AbstractChartBuilder
protected byte getChartType()
getChartType
in class AbstractChartBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |