|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface (Role) for a Factory class that can generate a Chart. The resulting chart should be able to be stored in a file and the file name returned to the caller. This filename can then be passed to a UI in order to display the finished chart. Alternately, the chart can be returned as an encoded String, ready to pass on the client UI for rendering.
| Field Summary | |
static int |
AREA_CHART |
static int |
AREA_XY_CHART |
static int |
BAR_CHART |
static int |
BAR_CHART_3D |
static int |
BUBBLE_CHART |
static int |
CANDLE_STICK_CHART |
static int |
COMPASS_CHART |
static int |
GANNT_CHART |
static int |
HIGH_LOW_CHART |
static int |
HISTOGRAM |
static int |
LINE_CHART |
static int |
LINE_XY_CHART |
static int |
METER_CHART |
static int |
PIE_CHARTAll possible chart types. |
static int |
PIE_CHART_3D |
static java.lang.String |
ROLE |
static int |
SCATTER_PLOT_CHART |
static int |
SIGNAL_CHART |
static int |
STACKED_AREA_CHART |
static int |
STACKED_BAR_CHART |
static int |
STACKED_BAR_CHART_3D |
static int |
TIME_SERIES_CHART |
static int |
WIND_PLOT_CHART |
static int |
XY_BAR_CHART |
static int |
XY_STEP_CHART |
| Method Summary | |
byte[] |
getChart(java.lang.String fileType, int width, int height) |
java.lang.String |
getChartEncoded(java.lang.String fileType, int width, int height)Prepare the chart and return it as a base64 encoded string, suitable for serialization via JMS (or anything else) to a client, saving in a database, etc. |
java.util.Set |
getSupportedChartTypes()Return a Set of integers, one for each of the support chart types for this implementation |
java.util.Set |
getSupportedFileTypes()Return a set of strings, where each string represents the file-type extension of a type of file supported by this implementation. |
java.util.Set |
getSupportedOptions()Once the chart type is set, getSupportedOptions can be called to determine what options (if any) this type of chart supports with this implementation. |
void |
saveChart(java.lang.String fileName, java.lang.String fileType, int width, int height)Produce the chart and save it as an image in the specified file. |
void |
setChartType(int chartType)Specify the type of chart to be produced. |
void |
setData(ChartData theData)Pass the data from which the chart is produced. |
void |
setOption(java.lang.String optionName, java.lang.Object option)Set a specific chart-type-specific or implementation-specific option. |
| Field Detail |
public static final java.lang.String ROLE
public static final int PIE_CHART
public static final int PIE_CHART_3D
public static final int AREA_CHART
public static final int STACKED_AREA_CHART
public static final int BAR_CHART
public static final int STACKED_BAR_CHART
public static final int BAR_CHART_3D
public static final int STACKED_BAR_CHART_3D
public static final int LINE_CHART
public static final int GANNT_CHART
public static final int LINE_XY_CHART
public static final int AREA_XY_CHART
public static final int SCATTER_PLOT_CHART
public static final int BUBBLE_CHART
public static final int WIND_PLOT_CHART
public static final int TIME_SERIES_CHART
public static final int XY_BAR_CHART
public static final int HIGH_LOW_CHART
public static final int CANDLE_STICK_CHART
public static final int SIGNAL_CHART
public static final int XY_STEP_CHART
public static final int HISTOGRAM
public static final int METER_CHART
public static final int COMPASS_CHART
| Method Detail |
public java.util.Set getSupportedChartTypes()
public java.util.Set getSupportedFileTypes()
public void setChartType(int chartType)
throws ChartException
chartType -ChartExceptionpublic java.util.Set getSupportedOptions()
public void setOption(java.lang.String optionName,
java.lang.Object option)
throws ChartException
optionName -option -ChartException
public void setData(ChartData theData)
throws ChartException
theData - A ChartData object containing the chart data to be plotted.ChartException
public void saveChart(java.lang.String fileName,
java.lang.String fileType,
int width,
int height)
throws ChartException
fileName - Name of the file in which to save the chartfileType - Valid file type (supported by this implementation)width - Width of the image in pixelsheight - Height of the image in pixelsChartException
public byte[] getChart(java.lang.String fileType,
int width,
int height)
throws ChartException
ChartException
public java.lang.String getChartEncoded(java.lang.String fileType,
int width,
int height)
throws ChartException
fileType -width -height -ChartException
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||