|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.mojo.dashboard.report.plugin.chart.AbstractChartRenderer
public abstract class AbstractChartRenderer
Field Summary | |
---|---|
protected IChartStrategy |
datasetStrategy
|
protected org.jfree.chart.JFreeChart |
report
Wrapped chart. |
Constructor Summary | |
---|---|
AbstractChartRenderer(IChartStrategy strategy)
|
|
AbstractChartRenderer(IChartStrategy strategy,
int width,
int height)
|
Method Summary | |
---|---|
java.awt.image.BufferedImage |
createBufferedImage(int imageWidth,
int imageHeight)
Create an image from the report as a BufferedImage . |
protected abstract void |
createChart()
create the chart with the IChartStrategy |
java.lang.String |
getFileExtension()
Return the file extension of the document : png. |
java.lang.String |
getMimeType()
Return the mime type of the document. |
boolean |
isEmpty()
|
void |
saveToFile(java.lang.String filename)
Save the report with the specified filename. |
void |
setHeight(int _height)
set the height of the image saved as file |
void |
setWidth(int _width)
set the width of the image saved as file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.jfree.chart.JFreeChart report
protected IChartStrategy datasetStrategy
Constructor Detail |
---|
public AbstractChartRenderer(IChartStrategy strategy)
strategy
- public AbstractChartRenderer(IChartStrategy strategy, int width, int height)
strategy
- width
- height
- Method Detail |
---|
protected abstract void createChart()
public boolean isEmpty()
public java.lang.String getFileExtension()
public java.lang.String getMimeType()
public void saveToFile(java.lang.String filename) throws java.io.IOException
If the file exists, it is overwritten.
filename
- Name of the output file.
java.io.IOException
- If an I/O exception occurs.net.logAnalyzer.reports.LAReport#saveToFile(java.lang.String)
public java.awt.image.BufferedImage createBufferedImage(int imageWidth, int imageHeight)
BufferedImage
.
imageWidth
- Image width.imageHeight
- Image height.
JFreeChart.createBufferedImage(int, int)
public void setHeight(int _height)
_height
- public void setWidth(int _width)
_width
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |