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() |
java.lang.String |
getAltText()
The alternative text that describes the chart.
|
Color |
getBackgroundColor()
The background color of the entire chart.
|
ColorStyle |
getBackgroundColorStyle()
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.
|
ScorecardChartSpec |
getScorecardChart()
A scorecard chart specification.
|
java.lang.String |
getSubtitle()
The subtitle of the chart.
|
TextFormat |
getSubtitleTextFormat()
The subtitle text format.
|
TextPosition |
getSubtitleTextPosition()
The subtitle text position.
|
java.lang.String |
getTitle()
The title of the chart.
|
TextFormat |
getTitleTextFormat()
The title text format.
|
TextPosition |
getTitleTextPosition()
The title text position.
|
TreemapChartSpec |
getTreemapChart()
A treemap chart specification.
|
WaterfallChartSpec |
getWaterfallChart()
A waterfall chart specification.
|
ChartSpec |
set(java.lang.String fieldName,
java.lang.Object value) |
ChartSpec |
setAltText(java.lang.String altText)
The alternative text that describes the chart.
|
ChartSpec |
setBackgroundColor(Color backgroundColor)
The background color of the entire chart.
|
ChartSpec |
setBackgroundColorStyle(ColorStyle backgroundColorStyle)
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 |
setScorecardChart(ScorecardChartSpec scorecardChart)
A scorecard chart specification.
|
ChartSpec |
setSubtitle(java.lang.String subtitle)
The subtitle of the chart.
|
ChartSpec |
setSubtitleTextFormat(TextFormat subtitleTextFormat)
The subtitle text format.
|
ChartSpec |
setSubtitleTextPosition(TextPosition subtitleTextPosition)
The subtitle text position.
|
ChartSpec |
setTitle(java.lang.String title)
The title of the chart.
|
ChartSpec |
setTitleTextFormat(TextFormat titleTextFormat)
The title text format.
|
ChartSpec |
setTitleTextPosition(TextPosition titleTextPosition)
The title text position.
|
ChartSpec |
setTreemapChart(TreemapChartSpec treemapChart)
A treemap chart specification.
|
ChartSpec |
setWaterfallChart(WaterfallChartSpec waterfallChart)
A waterfall chart specification.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getAltText()
null for nonepublic ChartSpec setAltText(java.lang.String altText)
altText - altText or null for nonepublic Color getBackgroundColor()
null for nonepublic ChartSpec setBackgroundColor(Color backgroundColor)
backgroundColor - backgroundColor or null for nonepublic ColorStyle getBackgroundColorStyle()
null for nonepublic ChartSpec setBackgroundColorStyle(ColorStyle backgroundColorStyle)
backgroundColorStyle - backgroundColorStyle 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 ScorecardChartSpec getScorecardChart()
null for nonepublic ChartSpec setScorecardChart(ScorecardChartSpec scorecardChart)
scorecardChart - scorecardChart or null for nonepublic java.lang.String getSubtitle()
null for nonepublic ChartSpec setSubtitle(java.lang.String subtitle)
subtitle - subtitle or null for nonepublic TextFormat getSubtitleTextFormat()
null for nonepublic ChartSpec setSubtitleTextFormat(TextFormat subtitleTextFormat)
subtitleTextFormat - subtitleTextFormat or null for nonepublic TextPosition getSubtitleTextPosition()
null for nonepublic ChartSpec setSubtitleTextPosition(TextPosition subtitleTextPosition)
subtitleTextPosition - subtitleTextPosition 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 TextPosition getTitleTextPosition()
null for nonepublic ChartSpec setTitleTextPosition(TextPosition titleTextPosition)
titleTextPosition - titleTextPosition or null for nonepublic TreemapChartSpec getTreemapChart()
null for nonepublic ChartSpec setTreemapChart(TreemapChartSpec treemapChart)
treemapChart - treemapChart or null for nonepublic WaterfallChartSpec getWaterfallChart()
null for nonepublic ChartSpec setWaterfallChart(WaterfallChartSpec waterfallChart)
waterfallChart - waterfallChart 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