public class ChoroplethViewSpecification extends java.lang.Object implements DataViewSpecification
| Modifier and Type | Field and Description |
|---|---|
static NumericColumn |
DATA_VALUE |
static StringColumn |
REGION_NAME |
static PolygonColumn |
REGION_SHAPE |
| Constructor and Description |
|---|
ChoroplethViewSpecification() |
| Modifier and Type | Method and Description |
|---|---|
DataView |
create()
Create a UI component to configure this kind of data view.
|
java.lang.String |
name()
Get a human-readable name for this kind of data view:
for example,
"Bar chart" or "Choropleth". |
java.util.List<ColumnSpecification> |
seriesDataSpecification()
Get specifications for each the columns that form each series.
|
java.util.List<ColumnSpecification> |
sharedDataSpecification()
Get specifications for each the columns that are shared among all series.
|
public static final StringColumn REGION_NAME
public static final PolygonColumn REGION_SHAPE
public static final NumericColumn DATA_VALUE
public java.lang.String name()
DataViewSpecification"Bar chart" or "Choropleth".name in interface DataViewSpecificationpublic DataView create()
DataViewSpecificationCreate a UI component to configure this kind of data view.
The returned data view may assume
that any data provided to it will conform to this specification;
that is, if dataViewSpecification.create() returns dataView,
then any arguments data passed as dataView.loadData(data)
must be such that
data.sharedData().keySet() contains the same elements
as this.sharedDataSpecification(), and
s in data.series(),
s.data().keySet() contains the same elements
as this.seriesDataSpecification().
DataView.loadData(Data).
create in interface DataViewSpecificationDataView objectpublic java.util.List<ColumnSpecification> seriesDataSpecification()
DataViewSpecificationseriesDataSpecification in interface DataViewSpecificationpublic java.util.List<ColumnSpecification> sharedDataSpecification()
DataViewSpecificationsharedDataSpecification in interface DataViewSpecification