Fusion Tables API v1 (revision 16)



com.google.api.services.fusiontables.model
Class StyleFunction

java.lang.Object
  extended by java.util.AbstractMap<java.lang.String,java.lang.Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.fusiontables.model.StyleFunction
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public final class StyleFunction
extends GenericJson

Represents a StyleFunction within a StyleSetting

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 Fusion Tables API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json

Upgrade warning: starting with version 1.12 getResponseHeaders() is removed, instead use JsonHttpRequest.getLastResponseHeaders()

Author:
Google, Inc.

Nested Class Summary
static class StyleFunction.Gradient
          Gradient function that interpolates a range of colors based on column value.
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
StyleFunction()
           
 
Method Summary
 java.util.List<Bucket> getBuckets()
          Bucket function that assigns a style based on the range a column value falls into.
 java.lang.String getColumnName()
          Name of the column whose value is used in the style.
 StyleFunction.Gradient getGradient()
          Gradient function that interpolates a range of colors based on column value.
 java.lang.String getKind()
          Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
 StyleFunction setBuckets(java.util.List<Bucket> buckets)
          Bucket function that assigns a style based on the range a column value falls into.
 StyleFunction setColumnName(java.lang.String columnName)
          Name of the column whose value is used in the style.
 StyleFunction setGradient(StyleFunction.Gradient gradient)
          Gradient function that interpolates a range of colors based on column value.
 StyleFunction setKind(java.lang.String kind)
          Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
 
Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StyleFunction

public StyleFunction()
Method Detail

getBuckets

public java.util.List<Bucket> getBuckets()
Bucket function that assigns a style based on the range a column value falls into. The value returned may be null.


setBuckets

public StyleFunction setBuckets(java.util.List<Bucket> buckets)
Bucket function that assigns a style based on the range a column value falls into. The value set may be null.


getColumnName

public java.lang.String getColumnName()
Name of the column whose value is used in the style. The value returned may be null.


setColumnName

public StyleFunction setColumnName(java.lang.String columnName)
Name of the column whose value is used in the style. The value set may be null.


getGradient

public StyleFunction.Gradient getGradient()
Gradient function that interpolates a range of colors based on column value. The value returned may be null.


setGradient

public StyleFunction setGradient(StyleFunction.Gradient gradient)
Gradient function that interpolates a range of colors based on column value. The value set may be null.


getKind

public java.lang.String getKind()
Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. The value returned may be null.


setKind

public StyleFunction setKind(java.lang.String kind)
Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. The value set may be null.