|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectschmitzm.jfree.feature.Feature2DatasetMapping<D,E,F>
public abstract class Feature2DatasetMapping<D extends Dataset,E,F>
This class implements the mapping between Dataset
items (points in chart)
and the corresponding Features
.
D
= the dataset type the model handles
E
= the data type the series are identified with in the dataset
F
= the data type the data items are identified with in each series
Field Summary | |
---|---|
protected D |
dataset
Holds the Dataset for the mapping |
protected Map<E,Map<F,String>> |
did2fid
Holds for each series the feature ID (String) for each data item. |
protected FeatureCollection |
featureCollection
Holds the FeatureCollection for the mapping |
protected Map<String,Map<E,F>> |
fid2did
Holds the data items ( Map<SeriesKey,ItemID> )
for each feature ID (String). |
Constructor Summary | |
---|---|
Feature2DatasetMapping(FeatureCollection fc,
D dataset)
Creates a mapping. |
Method Summary | |
---|---|
F |
getDataID(E seriesKey,
String fID)
Returns the data items for a given feature ID. |
F |
getDataID(String fID)
Returns the data items for a given feature IN THE PRIMARY SERIES. |
Map<E,F> |
getDataIDs(String fID)
Returns the data items for a given feature ID. |
D |
getDataset()
Returns the Dataset the mapping is provided for. |
FeatureCollection |
getFeatureCollection()
Returns the FeatureCollection the mapping is provided for. |
String |
getFeatureID(E seriesKey,
F itemID)
Returns the feature ID for a given data item. |
String |
getFeatureID(F itemID)
Returns the feature ID for a given data item IN THE PRIMARY SERIES. |
abstract E |
getPrimarySeriesKey()
Returns the key of the primary series. |
void |
removeMappingForDataItem(E seriesKey,
F itemID)
Removes the mapping for a dataset item. |
void |
removeMappingForDataItem(F itemID)
Removes the mapping for a dataset item IN THE PRIMARY SERIES. |
void |
removeMappingForFeatureID(String fID)
Removes the mapping of a feature ID. |
void |
setMapping(String featureID,
E seriesKey,
F itemID)
Sets the mapping between a feature ID and a dataset item. |
void |
setMapping(String featureID,
F itemID)
Sets the mapping between a feature ID and a dataset item IN THE PRIMARY SERIES. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FeatureCollection featureCollection
FeatureCollection
for the mapping
protected D extends Dataset dataset
Dataset
for the mapping
protected Map<String,Map<E,F>> fid2did
Map<SeriesKey,ItemID>
)
for each feature ID (String).
protected Map<E,Map<F,String>> did2fid
Constructor Detail |
---|
public Feature2DatasetMapping(FeatureCollection fc, D dataset)
fc
- a FeatureCollection
(can be null
)Method Detail |
---|
public FeatureCollection getFeatureCollection()
FeatureCollection
the mapping is provided for.
public D getDataset()
Dataset
the mapping is provided for.
public abstract E getPrimarySeriesKey()
public void setMapping(String featureID, F itemID)
featureID
- feature IDitemID
- defines the dataset itempublic void setMapping(String featureID, E seriesKey, F itemID)
featureID
- feature IDseriesKey
- defines the series in the dataset (if
null
the primary series is used)itemID
- defines the dataset item in the seriespublic void removeMappingForFeatureID(String fID)
fID
- feature IDpublic void removeMappingForDataItem(F itemID)
itemID
- dataset itempublic void removeMappingForDataItem(E seriesKey, F itemID)
seriesKey
- defines the series in the dataset (if
null
the primary series is used)itemID
- defines the dataset item in the seriespublic F getDataID(String fID)
fID
- a feature ID
null
if no data item is registered for the feature IDpublic F getDataID(E seriesKey, String fID)
seriesKey
- defines the series in the datasetfID
- a feature ID
null
if no data item is registered for the feature IDpublic String getFeatureID(F itemID)
itemID
- a data item
null
if no feature ID is registered for the data itempublic Map<E,F> getDataIDs(String fID)
fID
- a feature ID
null
if no data item is registered for the feature IDpublic String getFeatureID(E seriesKey, F itemID)
seriesKey
- defines the series in the datasetitemID
- defines the dataset item in the series (if
null
the primary series is used)
null
if no feature ID is registered for the data item
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |