sonification.dataimport.visbards_resourcetoolkit.model
Interface DatasetContainer

All Known Implementing Classes:
DefaultDatasetContainer

public interface DatasetContainer

This unit keeps a collection of datasets and their default properties. It is able to inform it's listeners about additions/removals of datasets. It also servers as a link to the 3d universe, as it attaches and detatches datasets from it.


Field Summary
static int MAXGLYPHS
           
 
Method Summary
 void addDatasets(Dataset[] datasets)
          Adds datasets to the system.
 void addDatasets(Dataset[] datasets, ProgressReporter pud)
          Adds datasets to the system, reporting progress
 void addListener(DatasetContainerListener listener)
          Registers a listener.
 Range computeOverallCategoryRange(Category cat)
          Returns the overall datarange for the specified category
 java.util.Enumeration getAllDatasets()
          Returns all loaded datasets.
 Dataset getDataset(java.lang.String name)
          Returns a dataset.
 java.util.Enumeration getDatasetNames()
          Returns the dataset names.
 PropertyContainer getDefaultsPropertyContainer()
          Returns the default property container for the contained datasets
 int getGlyphsReserved()
          Number of glyphs allocated by datasets with custom numGlyphs setting
 int getNumDatasets()
          Returns the number of added datasets.
 int getNumDefaultsets()
          Number of datasets using the default numGlyphs setting
 RangeModel getRangeModel()
          Returns the range model of this dataset container.
 void removeDataset(Dataset dataset)
          Removes a dataset from the system.
 void removeDataset(Dataset dataset, ProgressReporter pud)
          Removes a dataset from the system.
 void removeExtraCategories()
          Removes categories which are not used by any currently loaded datsets
 void removeListener(DatasetContainerListener listener)
          Unregisters a listener.
 

Field Detail

MAXGLYPHS

static final int MAXGLYPHS
See Also:
Constant Field Values
Method Detail

getGlyphsReserved

int getGlyphsReserved()
Number of glyphs allocated by datasets with custom numGlyphs setting


getNumDefaultsets

int getNumDefaultsets()
Number of datasets using the default numGlyphs setting


computeOverallCategoryRange

Range computeOverallCategoryRange(Category cat)
Returns the overall datarange for the specified category


getNumDatasets

int getNumDatasets()
Returns the number of added datasets.


getDataset

Dataset getDataset(java.lang.String name)
Returns a dataset.


getAllDatasets

java.util.Enumeration getAllDatasets()
Returns all loaded datasets.


getDatasetNames

java.util.Enumeration getDatasetNames()
Returns the dataset names. (Currently visualised)


removeExtraCategories

void removeExtraCategories()
Removes categories which are not used by any currently loaded datsets


removeDataset

void removeDataset(Dataset dataset)
                   throws SonificationException
Removes a dataset from the system. (No longer visualised)

Throws:
SonificationException

removeDataset

void removeDataset(Dataset dataset,
                   ProgressReporter pud)
                   throws SonificationException
Removes a dataset from the system. (No longer visualised)

Throws:
SonificationException

addDatasets

void addDatasets(Dataset[] datasets)
                 throws SonificationException
Adds datasets to the system.

Throws:
SonificationException

addDatasets

void addDatasets(Dataset[] datasets,
                 ProgressReporter pud)
                 throws SonificationException
Adds datasets to the system, reporting progress

Throws:
SonificationException

getRangeModel

RangeModel getRangeModel()
Returns the range model of this dataset container.


getDefaultsPropertyContainer

PropertyContainer getDefaultsPropertyContainer()
Returns the default property container for the contained datasets


addListener

void addListener(DatasetContainerListener listener)
Registers a listener.


removeListener

void removeListener(DatasetContainerListener listener)
Unregisters a listener.