|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Role public interface ChartGenerator
A component interface for defining various chart generators.
| Field Summary | |
|---|---|
static String |
COLORS_PARAM
Color parameter identifier. |
static String |
HEIGHT_PARAM
Height parameter identifier. |
static String |
SERIES_PARAM
Source parameter identifier. |
static String |
TITLE_PARAM
Title parameter identifier. |
static String |
TYPE_PARAM
Type parameter identifier. |
static String |
WIDTH_PARAM
Width parameter identifier. |
| Method Summary | |
|---|---|
byte[] |
generate(ChartModel model,
Map<String,String> parameters)
Generates an image of a chart representing the data presented as a ChartModel and extra formatting
parameters provided in the parameters map. |
| Field Detail |
|---|
static final String TITLE_PARAM
static final String HEIGHT_PARAM
static final String WIDTH_PARAM
static final String TYPE_PARAM
static final String SERIES_PARAM
static final String COLORS_PARAM
color1,color2,...,colorN where each color is specified as
a 6 characters string, the first 2 representing in hexadecimal the red percentage, the next two the green
percentage and the last 2 the blue percentage. For example FF0000,00FF00,0000FF for red, green, blue.
| Method Detail |
|---|
byte[] generate(ChartModel model,
Map<String,String> parameters)
throws ChartGeneratorException
ChartModel and extra formatting
parameters provided in the parameters map.
model - the ChartModel which defines the data model to be represented by the chart.parameters - extra parameters for controlling various features of the image output.
ChartGeneratorException - if the ChartGenerator is unable to render a chart.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||