net.sf.statcvs.charts
public class ChartImage extends Object
Modifier and Type | Field and Description |
---|---|
static Color |
BACKGROUND_COLOR |
static Color |
PLOT_COLOR |
Constructor and Description |
---|
ChartImage(String rootDirectory,
String fileName,
String title,
JFreeChart chart,
Dimension size)
Creates a new ChartFile.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final Color BACKGROUND_COLOR
public static final Color PLOT_COLOR
public ChartImage(String rootDirectory, String fileName, String title, JFreeChart chart, Dimension size)
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 pixelspublic void write()
public String getURL()
public String getFullTitle()
public int getWidth()
public int getHeight()