public interface DataViewSpecification
create()
the relevant data view widget
and load some predetermined data set;
this should only be allowed
if the data is valid for the given view.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.
|
DataView create()
Create 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)
.
DataView
objectjava.util.List<ColumnSpecification> sharedDataSpecification()
java.util.List<ColumnSpecification> seriesDataSpecification()
java.lang.String name()
"Bar chart"
or "Choropleth"
.