org.posterita.core
Class AbstractChart
java.lang.Object
org.posterita.core.AbstractChart
- Direct Known Subclasses:
- BarChart, PieChart, TimeSeriesChart
public abstract class AbstractChart
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
title
protected String title
subtitle
protected String subtitle
xLabel
protected String xLabel
yLabel
protected String yLabel
showLegend
protected boolean showLegend
showTooltip
protected boolean showTooltip
showLabels
protected boolean showLabels
renderingInfo
protected org.jfree.chart.ChartRenderingInfo renderingInfo
chart
protected org.jfree.chart.JFreeChart chart
AbstractChart
public AbstractChart()
createChart
public abstract org.jfree.chart.JFreeChart createChart()
throws OperationException
- Throws:
OperationException
getDataSetFromSQL
public abstract void getDataSetFromSQL(String sql)
throws OperationException
- Throws:
OperationException
saveChartAsPNG
public String saveChartAsPNG(String filePath,
int width,
int height)
throws OperationException
- Throws:
OperationException
saveChartAsJPEG
public String saveChartAsJPEG(String filePath,
int width,
int height)
throws OperationException
- Throws:
OperationException
writeChartAsPNG
public void writeChartAsPNG(OutputStream outputStream,
int width,
int height)
throws OperationException
- Throws:
OperationException
writeChartAsJPEG
public void writeChartAsJPEG(OutputStream outputStream,
int width,
int height)
throws OperationException
- Throws:
OperationException
getImageMap
public String getImageMap(String imageMapName)
throws OperationException
- Throws:
OperationException
writeImageMap
public void writeImageMap(OutputStream outputStream,
String imageMapName)
throws OperationException
- Throws:
OperationException
saveImageMap
public String saveImageMap(String imageMapPath)
throws OperationException
- Throws:
OperationException
isShowLegend
public boolean isShowLegend()
setShowLegend
public void setShowLegend(boolean showLegend)
isShowTooltip
public boolean isShowTooltip()
setShowTooltip
public void setShowTooltip(boolean showTooltip)
getSubtitle
public String getSubtitle()
setSubtitle
public void setSubtitle(String subtitle)
getTitle
public String getTitle()
setTitle
public void setTitle(String title)
getXLabel
public String getXLabel()
setXLabel
public void setXLabel(String label)
getYLabel
public String getYLabel()
setYLabel
public void setYLabel(String label)
isShowLabels
public boolean isShowLabels()
setShowLabels
public void setShowLabels(boolean showLabels)
getRenderingInfo
public org.jfree.chart.ChartRenderingInfo getRenderingInfo()
setRenderingInfo
public void setRenderingInfo(org.jfree.chart.ChartRenderingInfo renderingInfo)
getChart
public org.jfree.chart.JFreeChart getChart()
throws OperationException
- Throws:
OperationException
AdemPiere