|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ChartRenderer
All chart renderers will have to implements these methods.
| Method Summary | |
|---|---|
void |
exportChart(String filename)
create an image file |
Paint |
getChartColor(int chartIndex)
get the color of ith chart |
ImageFormat |
getImageFormat()
get the image format (jpg, png, ...) |
BufferedImage |
render()
render the chart |
void |
setBackgroundColor(Paint color)
set the background color |
void |
setChartColor(int chartIndex,
Paint color)
set the color of ith chart |
void |
setDimension(Dimension dim)
set chart dimension |
void |
setXAxisDefaultInterval()
|
void |
setXAxisInterval(double from,
double to)
set the x-axis interval to render |
void |
setXAxisLegend(String legend)
set x axis legend |
void |
setYAxisLegend(String legend)
set y axis legend |
| Method Detail |
|---|
void setChartColor(int chartIndex,
Paint color)
Paint getChartColor(int chartIndex)
ImageFormat getImageFormat()
void setDimension(Dimension dim)
void setBackgroundColor(Paint color)
void setXAxisInterval(double from,
double to)
void setXAxisDefaultInterval()
void setXAxisLegend(String legend)
void setYAxisLegend(String legend)
BufferedImage render()
throws ImageRenderingException
ImageRenderingException
void exportChart(String filename)
throws ImageRenderingException
ImageRenderingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||