schmitzm.jfree.feature
Class Feature2SeriesDatasetMapping

java.lang.Object
  extended by schmitzm.jfree.feature.Feature2DatasetMapping<SeriesDataset,Comparable<?>,Integer>
      extended by schmitzm.jfree.feature.Feature2SeriesDatasetMapping

public class Feature2SeriesDatasetMapping
extends Feature2DatasetMapping<SeriesDataset,Comparable<?>,Integer>

This class implements the mapping between SeriesDataset items (points in chart) and the corresponding Features. The structure of this mapping assumes that there can be multiple dataset items for one feature (e.g. in each series), but only one feature for each dataset item.

Author:
Martin Schmitz

Field Summary
 
Fields inherited from class schmitzm.jfree.feature.Feature2DatasetMapping
dataset, did2fid, featureCollection, fid2did
 
Constructor Summary
Feature2SeriesDatasetMapping(FeatureCollection fc, SeriesDataset dataset)
          Creates a mapping.
 
Method Summary
 Comparable<?> getPrimarySeriesKey()
          Returns the key of the primary series.
 
Methods inherited from class schmitzm.jfree.feature.Feature2DatasetMapping
getDataID, getDataID, getDataIDs, getDataset, getFeatureCollection, getFeatureID, getFeatureID, removeMappingForDataItem, removeMappingForDataItem, removeMappingForFeatureID, setMapping, setMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Feature2SeriesDatasetMapping

public Feature2SeriesDatasetMapping(FeatureCollection fc,
                                    SeriesDataset dataset)
Creates a mapping.

Parameters:
fc - a FeatureCollection (can be null)
dataset - a SeriesDataset
Method Detail

getPrimarySeriesKey

public Comparable<?> getPrimarySeriesKey()
Returns the key of the primary series.

Specified by:
getPrimarySeriesKey in class Feature2DatasetMapping<SeriesDataset,Comparable<?>,Integer>