Adempiere 3.4.0s

org.posterita.core
Class AbstractChart

java.lang.Object
  extended by org.posterita.core.AbstractChart
Direct Known Subclasses:
BarChart, PieChart, TimeSeriesChart

public abstract class AbstractChart
extends Object


Field Summary
protected  org.jfree.chart.JFreeChart chart
           
protected  org.jfree.chart.ChartRenderingInfo renderingInfo
           
protected  boolean showLabels
           
protected  boolean showLegend
           
protected  boolean showTooltip
           
protected  String subtitle
           
protected  String title
           
protected  String xLabel
           
protected  String yLabel
           
 
Constructor Summary
AbstractChart()
           
 
Method Summary
abstract  org.jfree.chart.JFreeChart createChart()
           
 org.jfree.chart.JFreeChart getChart()
           
abstract  void getDataSetFromSQL(String sql)
           
 String getImageMap(String imageMapName)
           
 org.jfree.chart.ChartRenderingInfo getRenderingInfo()
           
 String getSubtitle()
           
 String getTitle()
           
 String getXLabel()
           
 String getYLabel()
           
 boolean isShowLabels()
           
 boolean isShowLegend()
           
 boolean isShowTooltip()
           
 String saveChartAsJPEG(String filePath, int width, int height)
           
 String saveChartAsPNG(String filePath, int width, int height)
           
 String saveImageMap(String imageMapPath)
           
 void setRenderingInfo(org.jfree.chart.ChartRenderingInfo renderingInfo)
           
 void setShowLabels(boolean showLabels)
           
 void setShowLegend(boolean showLegend)
           
 void setShowTooltip(boolean showTooltip)
           
 void setSubtitle(String subtitle)
           
 void setTitle(String title)
           
 void setXLabel(String label)
           
 void setYLabel(String label)
           
 void writeChartAsJPEG(OutputStream outputStream, int width, int height)
           
 void writeChartAsPNG(OutputStream outputStream, int width, int height)
           
 void writeImageMap(OutputStream outputStream, String imageMapName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

AbstractChart

public AbstractChart()
Method Detail

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 3.4.0s

AdemPiere