|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.clichart.main.DefaultChartGenerator
public class DefaultChartGenerator
Default implementation of the ChartGenerator
| Constructor Summary | |
|---|---|
DefaultChartGenerator()
|
|
| Method Summary | |
|---|---|
protected AbstractChartBuilder |
buildChartBuilder(Options options,
java.lang.String[] seriesTitles)
Create and return an appropriate chart builder, based on the options provided |
protected AbstractDataParser |
buildDataParser(Options options,
AbstractChartBuilder chartbuider)
Create and return an appropriate data parser, based on the options provided. |
void |
clear()
Clear all set options. |
protected javax.swing.JFrame |
createChartFrame(org.jfree.chart.JFreeChart chart,
Options options)
Return a frame displaying the supplied chart |
protected ChartSaver |
createChartSaver(org.jfree.chart.JFreeChart chart,
Options options)
Return a ChartSaver for saving the chart to a file |
void |
generateChart(Options options)
Parse the provided data (from the supplied input file within the options, or from stdin if null), and either display a chart in an interactive window or save it to a file (depending on the present of an output path in the options). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultChartGenerator()
| Method Detail |
|---|
public void generateChart(Options options)
throws java.io.IOException,
InvalidDataException,
InvalidOptionsException,
ChartSaverException
ChartGenerator
generateChart in interface ChartGeneratoroptions - Options used for parsing data and generating chart
java.io.IOException - If not able to read input data or write chart
InvalidDataException - Input data was invalid (or didn't match the options provided)
InvalidOptionsException
ChartSaverExceptionpublic void clear()
ChartGenerator
clear in interface ChartGenerator
protected ChartSaver createChartSaver(org.jfree.chart.JFreeChart chart,
Options options)
protected javax.swing.JFrame createChartFrame(org.jfree.chart.JFreeChart chart,
Options options)
protected AbstractChartBuilder buildChartBuilder(Options options,
java.lang.String[] seriesTitles)
seriesTitles - Explicit series titles to use (null if none)
protected AbstractDataParser buildDataParser(Options options,
AbstractChartBuilder chartbuider)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||