|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.laures.cewolf.taglib.AbstractChartDefinition
public abstract class AbstractChartDefinition
Serializable implementaton of a ChartDefinition.
ChartHolder
,
Serialized FormField Summary | |
---|---|
private boolean |
antialias
|
private java.lang.String |
background
|
private float |
backgroundImageAlpha
|
private org.jfree.chart.JFreeChart |
chart
|
private int |
legendAnchor
|
protected static org.apache.commons.logging.Log |
log
|
private java.awt.Paint |
paint
|
private java.util.List |
postProcessors
|
private java.util.List |
postProcessorsParams
|
private boolean |
showLegend
|
protected java.lang.String |
title
|
protected java.lang.String |
type
|
protected java.lang.String |
xAxisLabel
|
protected java.lang.String |
yAxisLabel
|
Fields inherited from interface de.laures.cewolf.taglib.TaglibConstants |
---|
ANCHOR_EAST, ANCHOR_NORTH, ANCHOR_SOUTH, ANCHOR_WEST, TOOLTIPS_ENABLED_KEY |
Constructor Summary | |
---|---|
AbstractChartDefinition()
|
Method Summary | |
---|---|
void |
addPostProcessor(ChartPostProcessor pp)
|
void |
addPostProcessorParams(java.util.Map params)
|
java.lang.Object |
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 |
setLegendAnchor(int legendAnchor)
Sets the legendAnchor. |
void |
setPaint(java.awt.Paint paint)
Sets the paint. |
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 |
setXAxisLabel(java.lang.String xAxisLabel)
Sets the xAxisLabel. |
void |
setYAxisLabel(java.lang.String yAxisLabel)
Sets the yAxisLabel. |
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 static org.apache.commons.logging.Log log
protected java.lang.String title
protected java.lang.String xAxisLabel
protected java.lang.String yAxisLabel
protected java.lang.String type
private boolean antialias
private java.lang.String background
private float backgroundImageAlpha
private java.awt.Paint paint
private int legendAnchor
private boolean showLegend
private transient java.util.List postProcessors
private java.util.List postProcessorsParams
private transient org.jfree.chart.JFreeChart chart
Constructor Detail |
---|
public AbstractChartDefinition()
Method Detail |
---|
protected abstract org.jfree.chart.JFreeChart produceChart() throws DatasetProduceException, ChartValidationException
DatasetProduceException
ChartValidationException
public org.jfree.chart.title.LegendTitle getLegend()
public void removeLegend()
public java.lang.Object 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 setPaint(java.awt.Paint paint)
paint
- The 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 addPostProcessor(ChartPostProcessor pp)
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 |