public final class StyleFunction extends 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 Fusion Tables API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
| Modifier and Type | Class and Description |
|---|---|
static class |
StyleFunction.Gradient
Gradient function that interpolates a range of colors based on column value.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
StyleFunction() |
| Modifier and Type | Method and Description |
|---|---|
StyleFunction |
clone() |
List<Bucket> |
getBuckets()
Bucket function that assigns a style based on the range a column value falls into.
|
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.
|
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 |
set(String fieldName,
Object value) |
StyleFunction |
setBuckets(List<Bucket> buckets)
Bucket function that assigns a style based on the range a column value falls into.
|
StyleFunction |
setColumnName(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(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.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic List<Bucket> getBuckets()
null for nonepublic StyleFunction setBuckets(List<Bucket> buckets)
buckets - buckets or null for nonepublic String getColumnName()
null for nonepublic StyleFunction setColumnName(String columnName)
columnName - columnName or null for nonepublic StyleFunction.Gradient getGradient()
null for nonepublic StyleFunction setGradient(StyleFunction.Gradient gradient)
gradient - gradient or null for nonepublic String getKind()
null for nonepublic StyleFunction setKind(String kind)
kind - kind or null for nonepublic StyleFunction set(String fieldName, Object value)
set in class GenericJsonpublic StyleFunction clone()
clone in class GenericJson