P - the plot typeabstract class JFChartBase<P> extends Object implements Chart<P>, org.jfree.chart.ChartMouseListener
This is open source software released under the Apache 2.0 License
| Modifier and Type | Class and Description |
|---|---|
private class |
JFChartBase.LegendAdapter
A JFreeChart adapter to manage the chart legend
|
private class |
JFChartBase.ThemeAdapter
The ChartTheme adapter
|
private class |
JFChartBase.TitleAdapter
A JFreeChart ChartLabel adapter for the chart title
|
| Modifier and Type | Field and Description |
|---|---|
private org.jfree.chart.ChartPanel |
chartPanel |
private org.jfree.chart.JFreeChart |
freeChart |
private ChartOptions |
options |
private P |
plot |
| Constructor and Description |
|---|
JFChartBase(P plot,
boolean legend)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(JsCode jsCode,
String functionName,
String divId)
Writes a Javascript function with the name specified that will render this chart
|
(package private) org.jfree.chart.ChartPanel |
chartPanel()
Returns a reference to the chart panel
|
(package private) org.jfree.chart.JFreeChart |
freeChart()
Returns the JFreeChart reference for this chart
|
ChartLegend |
legend()
Returns the chart legend control for this chart
|
ChartOptions |
options()
Returns the options interface for this chart
|
P |
plot()
Returns the plot interface for this chart
|
Chart |
show()
Shows this chart on an appropriate output device
|
Chart |
show(int width,
int height)
Shows this chart on an appropriate output device
|
ChartLabel |
subtitle()
Returns the chart subtitle interface
|
ChartTheme |
theme()
Returns the theme interface for this chart
|
ChartLabel |
title()
Returns the chart title interface
|
(package private) String |
toBase64Image()
Returns a base64 encoded string of a PNG image generated from this chart
|
private org.jfree.chart.plot.Plot |
underlying(P plot)
Returns the JFreeChart plot object from the Morpheus Plot adapter
|
Chart |
writerPng(File file,
int width,
int height,
boolean transparent)
Writes a PNH image of the chart to the output stream
|
Chart |
writerPng(OutputStream os,
int width,
int height,
boolean transparent)
Writes a PNH image of the chart to the output stream
|
private P plot
private org.jfree.chart.JFreeChart freeChart
private org.jfree.chart.ChartPanel chartPanel
private ChartOptions options
JFChartBase(P plot, boolean legend)
plot - the plot for this chartlegend - true to enable legendprivate org.jfree.chart.plot.Plot underlying(P plot)
plot - the Morpheus plot adapterorg.jfree.chart.ChartPanel chartPanel()
org.jfree.chart.JFreeChart freeChart()
public P plot()
Chartpublic ChartLabel title()
Chartpublic ChartLabel subtitle()
Chartpublic ChartLegend legend()
Chartpublic ChartOptions options()
Chartpublic ChartTheme theme()
Chartpublic Chart show()
Chartpublic Chart show(int width, int height)
Chartpublic Chart writerPng(File file, int width, int height, boolean transparent)
Chartpublic Chart writerPng(OutputStream os, int width, int height, boolean transparent)
Chartpublic void accept(JsCode jsCode, String functionName, String divId)
ChartString toBase64Image() throws IOException
IOException - if there is an I/O exceptionCopyright 2014-2017, Xavier Witdouck