|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsonification.dataimport.visbards_resourcetoolkit.model.DefaultDatasetContainer
public class DefaultDatasetContainer
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 |
|---|
| Fields inherited from interface sonification.dataimport.visbards_resourcetoolkit.model.DatasetContainer |
|---|
MAXGLYPHS |
| Fields inherited from interface sonification.dataimport.visbards_resourcetoolkit.model.DatasetListener |
|---|
SELECTED_ROW, SELECTED_ROWRANGE_CHANGED |
| Fields inherited from interface sonification.dataimport.visbards_resourcetoolkit.model.RangeModelListener |
|---|
ALL_CHANGED, OVERALL_RANGE_CHANGED, SELECTED_RANGE_CHANGED |
| Constructor Summary | |
|---|---|
DefaultDatasetContainer(Universe uni,
RangeModel rmodel,
PropertyContainer dc,
CategoryPool pool)
Constructs a standard dataset container. |
|
| Method Summary | |
|---|---|
void |
addDatasets(Dataset[] datasets)
Adds a dataset to the system. |
void |
addDatasets(Dataset[] datasets,
ProgressReporter pud)
Adds datasets to the system, reporting progress |
void |
addListener(DatasetContainerListener listener)
Registers a listener. |
void |
categoryAdded(CategoryPool source,
Category cat)
Indicates that a category has been added to the system. |
void |
categoryRemoved(CategoryPool source,
Category cat)
Indicates that a category has been removed from the system. |
Range |
computeOverallCategoryRange(Category cat)
Returns the overall datarange for the specified category |
void |
computeOverallCategoryRanges()
|
void |
datasetChanged(Dataset source,
int eventID)
Notified when one of the datasets changes its encompasing range. |
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 this dataset |
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 |
pseudoCategoryChanged(PseudoCategory source)
An event that indicates that this pseudo category has changed how it computes its values. |
void |
rangeModelChanged(RangeModel source,
int eventID)
Indicates that the range model changed. |
void |
removeDataset(Dataset dataset)
Removes a dataset from the container. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultDatasetContainer(Universe uni,
RangeModel rmodel,
PropertyContainer dc,
CategoryPool pool)
| Method Detail |
|---|
public void computeOverallCategoryRanges()
public Dataset getDataset(java.lang.String name)
getDataset in interface DatasetContainerpublic java.util.Enumeration getAllDatasets()
getAllDatasets in interface DatasetContainerpublic java.util.Enumeration getDatasetNames()
getDatasetNames in interface DatasetContainer
public void removeDataset(Dataset dataset)
throws SonificationException
removeDataset in interface DatasetContainerSonificationExceptionpublic void removeExtraCategories()
DatasetContainer
removeExtraCategories in interface DatasetContainer
public void removeDataset(Dataset dataset,
ProgressReporter pud)
throws SonificationException
removeDataset in interface DatasetContainerSonificationExceptionpublic int getGlyphsReserved()
DatasetContainer
getGlyphsReserved in interface DatasetContainerpublic int getNumDefaultsets()
DatasetContainer
getNumDefaultsets in interface DatasetContainer
public void addDatasets(Dataset[] datasets,
ProgressReporter pud)
throws SonificationException
addDatasets in interface DatasetContainerSonificationException
public void addDatasets(Dataset[] datasets)
throws SonificationException
addDatasets in interface DatasetContainerSonificationExceptionpublic Range computeOverallCategoryRange(Category cat)
computeOverallCategoryRange in interface DatasetContainerpublic RangeModel getRangeModel()
getRangeModel in interface DatasetContainerpublic PropertyContainer getDefaultsPropertyContainer()
getDefaultsPropertyContainer in interface DatasetContainer
public void rangeModelChanged(RangeModel source,
int eventID)
rangeModelChanged in interface RangeModelListenerpublic void addListener(DatasetContainerListener listener)
addListener in interface DatasetContainerpublic void removeListener(DatasetContainerListener listener)
removeListener in interface DatasetContainer
public void datasetChanged(Dataset source,
int eventID)
datasetChanged in interface DatasetListener
public void categoryAdded(CategoryPool source,
Category cat)
categoryAdded in interface CategoryPoolListener
public void categoryRemoved(CategoryPool source,
Category cat)
categoryRemoved in interface CategoryPoolListenerpublic int getNumDatasets()
getNumDatasets in interface DatasetContainerpublic void pseudoCategoryChanged(PseudoCategory source)
pseudoCategoryChanged in interface PseudoCategoryListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||