| java.lang.Object de.laures.cewolf.taglib.CewolfChartFactory
CewolfChartFactory | abstract public class CewolfChartFactory implements ChartConstants,AxisConstants,LayoutConstants(Code) | | Chart factory creates Jfreechart instances. To add a new factory use the
CewolfChartFactory.registerFactory(new CewolfChartFactory() {...});
method.
author: Guido Laures |
Method Summary | |
public static void | check(Dataset data, Class clazz, String chartType) Helper to check if the given dataset is the expected type. | abstract public JFreeChart | getChartInstance(String title, String xAxisLabel, String yAxisLabel, Dataset data) Callback when the chart instance to be created. | public static JFreeChart | getChartInstance(String chartType, String title, String xAxisLabel, String yAxisLabel, Dataset data) | public static JFreeChart | getCombinedChartInstance(String chartType, String title, String xAxisLabel, String yAxisLabel, List plotDefinitions, String layout) | public static JFreeChart | getOverlaidChartInstance(String chartType, String title, String xAxisLabel, String yAxisLabel, int xAxisType, int yAxisType, List plotDefinitions) | public static void | registerFactory(CewolfChartFactory factory) Register a new chart factory instance. |
CewolfChartFactory | protected CewolfChartFactory(String chartType)(Code) | | Creates a new instance of ChartFactory
|
getChartInstance | abstract public JFreeChart getChartInstance(String title, String xAxisLabel, String yAxisLabel, Dataset data) throws IncompatibleDatasetException(Code) | | Callback when the chart instance to be created.
Parameters: title - The title of chart Parameters: xAxisLabel - label on x axis Parameters: yAxisLabel - label on y axis Parameters: data - The dataset to create chart for The newly created JFreeChart instance throws: IncompatibleDatasetException - If the incoming data is not compatible with this factory |
registerFactory | public static void registerFactory(CewolfChartFactory factory)(Code) | | Register a new chart factory instance.
Parameters: factory - The factory to register |
|
|