P - the plot type for this chartclass GChart<P> extends Object implements Chart<P>
This is open source software released under the Apache 2.0 License
| Modifier and Type | Class and Description |
|---|---|
private class |
GChart.LegendAdapter
A ChartLegend adapter for Google charts
|
| Modifier and Type | Field and Description |
|---|---|
private GChart.LegendAdapter |
legend |
private ChartOptions |
options |
private P |
plot |
private GChartLabel |
subtitle |
private GChartLabel |
title |
| 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
|
private String |
createTitle()
Returns the title / subtitle combo
|
private String |
getChartType()
Returns the Google chart type Javascript class
|
ChartLegend |
legend()
Returns the chart legend control for this chart
|
static void |
main(String[] args) |
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
|
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 ChartOptions options
private GChart.LegendAdapter legend
private GChartLabel title
private GChartLabel subtitle
GChart(P plot)
plot - the plot for this chartpublic P plot()
Chartpublic ChartLabel title()
Chartpublic ChartLabel subtitle()
Chartpublic ChartTheme theme()
Chartpublic ChartOptions options()
Chartpublic ChartLegend legend()
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)
Chartprivate String createTitle()
private String getChartType()
public static void main(String[] args)
Copyright 2014-2017, Xavier Witdouck