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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ChartSpec() |
Modifier and Type | Method and Description |
---|---|
ChartSpec |
clone() |
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.
|
DataSourceChartProperties |
getDataSourceChartProperties()
If present, the field contains data source chart specific properties.
|
List<FilterSpec> |
getFilterSpecs()
The filters applied to the source data of the chart.
|
String |
getFontName()
The name of the font to use by default for all chart text (e.g.
|
String |
getHiddenDimensionStrategy()
Determines how the charts will use hidden rows or columns.
|
HistogramChartSpec |
getHistogramChart()
A histogram chart specification.
|
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.
|
List<SortSpec> |
getSortSpecs()
The order to sort the chart data by.
|
String |
getSubtitle()
The subtitle of the chart.
|
TextFormat |
getSubtitleTextFormat()
The subtitle text format.
|
TextPosition |
getSubtitleTextPosition()
The subtitle text position.
|
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(String fieldName,
Object value) |
ChartSpec |
setAltText(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 |
setDataSourceChartProperties(DataSourceChartProperties dataSourceChartProperties)
If present, the field contains data source chart specific properties.
|
ChartSpec |
setFilterSpecs(List<FilterSpec> filterSpecs)
The filters applied to the source data of the chart.
|
ChartSpec |
setFontName(String fontName)
The name of the font to use by default for all chart text (e.g.
|
ChartSpec |
setHiddenDimensionStrategy(String hiddenDimensionStrategy)
Determines how the charts will use hidden rows or columns.
|
ChartSpec |
setHistogramChart(HistogramChartSpec histogramChart)
A histogram chart specification.
|
ChartSpec |
setMaximized(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 |
setSortSpecs(List<SortSpec> sortSpecs)
The order to sort the chart data by.
|
ChartSpec |
setSubtitle(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(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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getAltText()
null
for nonepublic ChartSpec setAltText(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 DataSourceChartProperties getDataSourceChartProperties()
null
for nonepublic ChartSpec setDataSourceChartProperties(DataSourceChartProperties dataSourceChartProperties)
dataSourceChartProperties
- dataSourceChartProperties or null
for nonepublic List<FilterSpec> getFilterSpecs()
null
for nonepublic ChartSpec setFilterSpecs(List<FilterSpec> filterSpecs)
filterSpecs
- filterSpecs or null
for nonepublic String getFontName()
null
for nonepublic ChartSpec setFontName(String fontName)
fontName
- fontName or null
for nonepublic String getHiddenDimensionStrategy()
null
for nonepublic ChartSpec setHiddenDimensionStrategy(String hiddenDimensionStrategy)
hiddenDimensionStrategy
- hiddenDimensionStrategy or null
for nonepublic HistogramChartSpec getHistogramChart()
null
for nonepublic ChartSpec setHistogramChart(HistogramChartSpec histogramChart)
histogramChart
- histogramChart or null
for nonepublic Boolean getMaximized()
null
for nonepublic ChartSpec setMaximized(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 List<SortSpec> getSortSpecs()
null
for nonepublic ChartSpec setSortSpecs(List<SortSpec> sortSpecs)
sortSpecs
- sortSpecs or null
for nonepublic String getSubtitle()
null
for nonepublic ChartSpec setSubtitle(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 String getTitle()
null
for nonepublic ChartSpec setTitle(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(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public ChartSpec clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.