|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.laures.cewolf.taglib.AbstractChartDefinition
public abstract class AbstractChartDefinition
Serializable implementaton of a ChartDefinition.
ChartHolder
,
Serialized FormField Summary | |
---|---|
protected boolean |
borderVisible
|
protected boolean |
plotBorderVisible
|
protected boolean |
showLegend
|
protected java.lang.String |
title
|
protected java.lang.String |
type
|
protected boolean |
xAxisInteger
|
protected java.lang.String |
xAxisLabel
|
protected boolean |
xTickLabelsVisible
|
protected boolean |
xTickMarksVisible
|
protected boolean |
yAxisInteger
|
protected java.lang.String |
yAxisLabel
|
protected boolean |
yTickLabelsVisible
|
protected boolean |
yTickMarksVisible
|
Constructor Summary | |
---|---|
AbstractChartDefinition()
|
Method Summary | |
---|---|
void |
addPostProcessor(ChartPostProcessor cpp)
|
void |
addPostProcessorParams(java.util.Map params)
|
org.jfree.chart.JFreeChart |
getChart()
This method triggers the dataset and chart production. |
org.jfree.chart.title.LegendTitle |
getLegend()
|
void |
onImageRendered(RenderedImage renderedImage)
Callback right after a new image gets rendered. |
protected abstract org.jfree.chart.JFreeChart |
produceChart()
|
void |
removeLegend()
|
void |
setAntialias(boolean antialias)
Sets the antialias. |
void |
setBackground(java.lang.String background)
Sets the background. |
void |
setBackgroundImageAlpha(float backgroundImageAlpha)
Sets the backgroundImageAlpha. |
void |
setBackgroundPaint(java.awt.Paint paint)
Sets the background paint. |
void |
setBorderPaint(java.awt.Paint paint)
Sets the chart border paint. |
void |
setBorderVisible(boolean borderVisible)
Whether the chart is drawn with a border. |
void |
setLegendAnchor(int legendAnchor)
Sets the legendAnchor. |
void |
setPlotBackgroundPaint(java.awt.Paint paint)
Sets the plot's background paint. |
void |
setPlotBorderPaint(java.awt.Paint paint)
Sets the plot border paint. |
void |
setPlotBorderVisible(boolean plotBorderVisible)
Whether the plot is drawn with a border. |
void |
setShowLegend(boolean showLegend)
Sets the showLegend. |
void |
setTitle(java.lang.String title)
Sets the title. |
void |
setType(java.lang.String type)
Sets the type. |
void |
setWebRootDir(java.lang.String webRootDir)
|
void |
setXaxisinteger(boolean xAxisInteger)
Whether the domain (X) axis should show integer values only. |
void |
setXAxisLabel(java.lang.String xAxisLabel)
Sets the xAxisLabel. |
void |
setXticklabelsvisible(boolean xTickLabelsVisible)
Whether the domain (X) axis should show any tick labels. |
void |
setXtickmarksvisible(boolean xTickMarksVisible)
Whether the domain (X) axis should show any tick marks. |
void |
setYaxisinteger(boolean yAxisInteger)
Whether the range (Y) axis should show integer values only. |
void |
setYAxisLabel(java.lang.String yAxisLabel)
Sets the yAxisLabel. |
void |
setYticklabelsvisible(boolean yTickLabelsVisible)
Whether the range (Y) axis should show any tick labels. |
void |
setYtickmarksvisible(boolean yTickMarksVisible)
Whether the range (Y) axis should show any tick marks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.laures.cewolf.ChartHolder |
---|
getDataset |
Field Detail |
---|
protected java.lang.String title
protected java.lang.String xAxisLabel
protected java.lang.String yAxisLabel
protected java.lang.String type
protected boolean xAxisInteger
protected boolean yAxisInteger
protected boolean xTickMarksVisible
protected boolean yTickMarksVisible
protected boolean xTickLabelsVisible
protected boolean yTickLabelsVisible
protected boolean borderVisible
protected boolean plotBorderVisible
protected boolean showLegend
Constructor Detail |
---|
public AbstractChartDefinition()
Method Detail |
---|
protected abstract org.jfree.chart.JFreeChart produceChart() throws DatasetProduceException, ChartValidationException
DatasetProduceException
ChartValidationException
public void setWebRootDir(java.lang.String webRootDir)
public org.jfree.chart.title.LegendTitle getLegend()
public void removeLegend()
public org.jfree.chart.JFreeChart getChart() throws DatasetProduceException, ChartValidationException, PostProcessingException
getChart
in interface ChartHolder
DatasetProduceException
- if there could be no data produced for the cahrt
PostProcessingException
- if a post processor failed to process the chart
ChartValidationException
public void setAntialias(boolean antialias)
antialias
- The antialias to setpublic void setBackground(java.lang.String background)
background
- The background to setpublic void setBackgroundImageAlpha(float backgroundImageAlpha)
backgroundImageAlpha
- The backgroundImageAlpha to setpublic void setLegendAnchor(int legendAnchor)
legendAnchor
- The legendAnchor to setpublic void setBackgroundPaint(java.awt.Paint paint)
paint
- The background paint to setpublic void setPlotBackgroundPaint(java.awt.Paint paint)
paint
- The plot's background paint to setpublic void setShowLegend(boolean showLegend)
showLegend
- The showLegend to setpublic void setTitle(java.lang.String title)
title
- The title to setpublic void setType(java.lang.String type)
type
- The type to setpublic void setXAxisLabel(java.lang.String xAxisLabel)
xAxisLabel
- The xAxisLabel to setpublic void setYAxisLabel(java.lang.String yAxisLabel)
yAxisLabel
- The yAxisLabel to setpublic void setXaxisinteger(boolean xAxisInteger)
public void setYaxisinteger(boolean yAxisInteger)
public void setXtickmarksvisible(boolean xTickMarksVisible)
public void setYtickmarksvisible(boolean yTickMarksVisible)
public void setXticklabelsvisible(boolean xTickLabelsVisible)
public void setYticklabelsvisible(boolean yTickLabelsVisible)
public void setBorderVisible(boolean borderVisible)
public void setPlotBorderVisible(boolean plotBorderVisible)
public void setBorderPaint(java.awt.Paint paint)
public void setPlotBorderPaint(java.awt.Paint paint)
public void addPostProcessor(ChartPostProcessor cpp)
public void addPostProcessorParams(java.util.Map params)
public void onImageRendered(RenderedImage renderedImage)
onImageRendered
in interface ChartImageRenderListener
renderedImage
- The fresh image just got rendered
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |