public final class ChartSpec
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Sheets API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
ChartSpec() |
| Modifier and Type | Method and Description |
|---|---|
ChartSpec |
clone() |
Color |
getBackgroundColor()
The background color of the entire chart.
|
BasicChartSpec |
getBasicChart()
A basic chart specification, can be one of many kinds of charts.
|
BubbleChartSpec |
getBubbleChart()
A bubble chart specification.
|
CandlestickChartSpec |
getCandlestickChart()
A candlestick chart specification.
|
java.lang.String |
getFontName()
The name of the font to use by default for all chart text (e.g.
|
java.lang.String |
getHiddenDimensionStrategy()
Determines how the charts will use hidden rows or columns.
|
HistogramChartSpec |
getHistogramChart()
A histogram chart specification.
|
java.lang.Boolean |
getMaximized()
True to make a chart fill the entire space in which it's rendered with minimum padding.
|
OrgChartSpec |
getOrgChart()
An org chart specification.
|
PieChartSpec |
getPieChart()
A pie chart specification.
|
java.lang.String |
getTitle()
The title of the chart.
|
TextFormat |
getTitleTextFormat()
The title text format.
|
ChartSpec |
set(java.lang.String fieldName,
java.lang.Object value) |
ChartSpec |
setBackgroundColor(Color backgroundColor)
The background color of the entire chart.
|
ChartSpec |
setBasicChart(BasicChartSpec basicChart)
A basic chart specification, can be one of many kinds of charts.
|
ChartSpec |
setBubbleChart(BubbleChartSpec bubbleChart)
A bubble chart specification.
|
ChartSpec |
setCandlestickChart(CandlestickChartSpec candlestickChart)
A candlestick chart specification.
|
ChartSpec |
setFontName(java.lang.String fontName)
The name of the font to use by default for all chart text (e.g.
|
ChartSpec |
setHiddenDimensionStrategy(java.lang.String hiddenDimensionStrategy)
Determines how the charts will use hidden rows or columns.
|
ChartSpec |
setHistogramChart(HistogramChartSpec histogramChart)
A histogram chart specification.
|
ChartSpec |
setMaximized(java.lang.Boolean maximized)
True to make a chart fill the entire space in which it's rendered with minimum padding.
|
ChartSpec |
setOrgChart(OrgChartSpec orgChart)
An org chart specification.
|
ChartSpec |
setPieChart(PieChartSpec pieChart)
A pie chart specification.
|
ChartSpec |
setTitle(java.lang.String title)
The title of the chart.
|
ChartSpec |
setTitleTextFormat(TextFormat titleTextFormat)
The title text format.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic Color getBackgroundColor()
null for nonepublic ChartSpec setBackgroundColor(Color backgroundColor)
backgroundColor - backgroundColor or null for nonepublic BasicChartSpec getBasicChart()
null for nonepublic ChartSpec setBasicChart(BasicChartSpec basicChart)
basicChart - basicChart or null for nonepublic BubbleChartSpec getBubbleChart()
null for nonepublic ChartSpec setBubbleChart(BubbleChartSpec bubbleChart)
bubbleChart - bubbleChart or null for nonepublic CandlestickChartSpec getCandlestickChart()
null for nonepublic ChartSpec setCandlestickChart(CandlestickChartSpec candlestickChart)
candlestickChart - candlestickChart or null for nonepublic java.lang.String getFontName()
null for nonepublic ChartSpec setFontName(java.lang.String fontName)
fontName - fontName or null for nonepublic java.lang.String getHiddenDimensionStrategy()
null for nonepublic ChartSpec setHiddenDimensionStrategy(java.lang.String hiddenDimensionStrategy)
hiddenDimensionStrategy - hiddenDimensionStrategy or null for nonepublic HistogramChartSpec getHistogramChart()
null for nonepublic ChartSpec setHistogramChart(HistogramChartSpec histogramChart)
histogramChart - histogramChart or null for nonepublic java.lang.Boolean getMaximized()
null for nonepublic ChartSpec setMaximized(java.lang.Boolean maximized)
maximized - maximized or null for nonepublic OrgChartSpec getOrgChart()
null for nonepublic ChartSpec setOrgChart(OrgChartSpec orgChart)
orgChart - orgChart or null for nonepublic PieChartSpec getPieChart()
null for nonepublic ChartSpec setPieChart(PieChartSpec pieChart)
pieChart - pieChart or null for nonepublic java.lang.String getTitle()
null for nonepublic ChartSpec setTitle(java.lang.String title)
title - title or null for nonepublic TextFormat getTitleTextFormat()
null for nonepublic ChartSpec setTitleTextFormat(TextFormat titleTextFormat)
titleTextFormat - titleTextFormat or null for nonepublic ChartSpec set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic ChartSpec clone()
clone in class com.google.api.client.json.GenericJson