net.sf.statcvs.charts
Class ChartImage
An image file for a chart.
TODO: Better integrate all charts with ReportConfig
$Id: ChartImage.java,v 1.6 2008/04/02 11:22:15 benoitx Exp $- jentzsch
- Richard Cyganiak (richard@cyganiak.de)
ChartImage(String rootDirectory, String fileName, String title, JFreeChart chart, Dimension size) - Creates a new ChartFile.
|
String | getFullTitle() - Returns the chart's title.
|
int | getHeight() - Returns the chart's height in pixels.
|
String | getURL() - Returns the chart's URL, relative to the report root.
|
int | getWidth() - Returns the chart's width in pixels.
|
void | write() - Writes the chart to disk as a PNG file.
|
ChartImage
public ChartImage(String rootDirectory,
String fileName,
String title,
JFreeChart chart,
Dimension size)
Creates a new ChartFile.
rootDirectory
- The report root directory with trailing slashfileName
- The relative file name for the chart, with .png extensiontitle
- The chart's titlechart
- The JFreeChart object to save as a filesize
- width and height of the chart in pixels
getFullTitle
public String getFullTitle()
Returns the chart's title.
getHeight
public int getHeight()
Returns the chart's height in pixels.
getURL
public String getURL()
Returns the chart's URL, relative to the report root.
getWidth
public int getWidth()
Returns the chart's width in pixels.
write
public void write()
Writes the chart to disk as a PNG file.