public class JFChartFactory extends Object implements ChartFactory
This is open source software released under the Apache 2.0 License
| Modifier and Type | Field and Description |
|---|---|
private static Set<Class<?>> |
timeTypeSet |
| Constructor and Description |
|---|
JFChartFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSupported(Chart<?> chart)
Returns true if this factory supports the chart type specified
|
private boolean |
isTimeBased(Class<?> type)
Returns true if the data type is time series related
|
String |
javascript(Chart... charts)
Returns Javascript to embed in an HTML page which will plot the charts specified.
|
String |
javascript(Iterable<Chart<?>> charts)
Returns Javascript to embed in an HTML page which will plot the charts specified.
|
<X extends Comparable,S extends Comparable> |
ofPiePlot(boolean is3d,
Consumer<Chart<PiePlot<X,S>>> configurator)
Returns a newly created Pie chart and applies it to the configurator provided
|
<X extends Comparable> |
ofXY(Class<X> domainType,
Consumer<Chart<XyPlot<X>>> configurator)
Returns a newly created XY chart and applies it to the configurator provided
|
void |
show(int columns,
Iterable<Chart<?>> charts)
Displays the collection of charts in a grid with the number of columns specified
|
void |
show(int columns,
Stream<Chart<?>> charts)
Displays the collection of charts in a grid with the number of columns specified
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithAcf, withAreaPlot, withAreaPlot, withBarPlot, withBarPlot, withHistPlot, withHistPlot, withHistPlot, withLinePlot, withLinePlot, withPiePlot, withPiePlot, withPiePlot, withResidualsVsFitted, withScatterPlot, withScatterPlotpublic void show(int columns,
Stream<Chart<?>> charts)
ChartFactoryshow in interface ChartFactorycolumns - the number of columns for chart gridcharts - the sequence of charts to plotpublic void show(int columns,
Iterable<Chart<?>> charts)
ChartFactoryshow in interface ChartFactorycolumns - the number of columns for chart gridcharts - the sequence of charts to plotpublic boolean isSupported(Chart<?> chart)
ChartFactoryisSupported in interface ChartFactorychart - the chart instancepublic String javascript(Iterable<Chart<?>> charts)
ChartFactorydiv elements which
have attributes labelled "chart_N" where N is 0, 1, 2, N. The first chart
in the arguments will be plotted in div with id=chart_0, the second will be plotted in the
div with id=chart_1 and so on. javascript in interface ChartFactorycharts - the sequence of charts to generate Javascript frompublic String javascript(Chart... charts)
ChartFactorydiv elements which
have attributes labelled "chart_N" where N is 0, 1, 2, N. The first chart
in the arguments will be plotted in div with id=chart_0, the second will be plotted in the
div with id=chart_1 and so on. javascript in interface ChartFactorycharts - the sequence of charts to generate Javascript frompublic <X extends Comparable> Chart<XyPlot<X>> ofXY(Class<X> domainType, Consumer<Chart<XyPlot<X>>> configurator)
ChartFactoryofXY in interface ChartFactoryX - the domain key typedomainType - the data type for the domain axisconfigurator - the chart configuratorpublic <X extends Comparable,S extends Comparable> Chart<PiePlot<X,S>> ofPiePlot(boolean is3d, Consumer<Chart<PiePlot<X,S>>> configurator)
ChartFactoryofPiePlot in interface ChartFactoryX - the item key typeis3d - true for a 3d plotconfigurator - the chart configuratorprivate boolean isTimeBased(Class<?> type)
type - the data typeCopyright 2014-2017, Xavier Witdouck