|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.statcvs.charts.ChartImage
An image file for a chart. TODO: Better integrate all charts with ReportConfig
Field Summary | |
static java.awt.Color |
BACKGROUND_COLOR
|
static java.awt.Color |
PLOT_COLOR
|
Constructor Summary | |
ChartImage(java.lang.String rootDirectory,
java.lang.String fileName,
java.lang.String title,
org.jfree.chart.JFreeChart chart,
java.awt.Dimension size)
Creates a new ChartFile. |
Method Summary | |
java.lang.String |
getFullTitle()
Returns the chart's title. |
int |
getHeight()
Returns the chart's height in pixels. |
java.lang.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.awt.Color BACKGROUND_COLOR
public static final java.awt.Color PLOT_COLOR
Constructor Detail |
public ChartImage(java.lang.String rootDirectory, java.lang.String fileName, java.lang.String title, org.jfree.chart.JFreeChart chart, java.awt.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 pixelsMethod Detail |
public void write()
public java.lang.String getURL()
public java.lang.String getFullTitle()
public int getWidth()
public int getHeight()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |