sonification.dataimport.visbards_resourcetoolkit.model
Interface Dataset

All Superinterfaces:
ModeManagerListener, PropertyContainerListener, RangeModelListener
All Known Implementing Classes:
DefaultDataset

public interface Dataset
extends RangeModelListener, PropertyContainerListener, ModeManagerListener


Field Summary
 
Fields inherited from interface sonification.dataimport.visbards_resourcetoolkit.model.RangeModelListener
ALL_CHANGED, OVERALL_RANGE_CHANGED, SELECTED_RANGE_CHANGED
 
Method Summary
 void addListener(DatasetListener listener)
          Registers a listener.
 void attach(PropertyContainer container, RangeModel model, Universe uni)
          Visualise this dataset to the universe.
 void detach()
          Detatch stop visualising this dataset.
 int findGlyphRow(Glyph g)
          Returns the row address of the glyph.
 Glyph findMiddleVisibleGlyph()
          Returns the middle vissible glyph of this dataset.
 java.lang.Object getBasePropVal(Property prop)
          This method either returns datasets own property value, if n/a returns value from the default property container.
 PropertyContainer getDefaultPropertyContainer()
          Returns the default property container of this dataset.
 java.lang.String getName()
          Returns the name of the dataset.
 int getNumGlyphsDisplayed()
          Returns the number of currently displayed glyphs
 PropertyContainer getPropertyContainer()
          Returns the property container of the dataset.
 Repository getRepository()
          Returns the repository of this dataset.
 Range getRowRange()
          Returns the currently displayed row range
 int getSelectedRow()
          Returns the currently selected row.
 java.awt.Color getStaticColor()
          Returns the static glyph color for this dataset.
 void removeListener(DatasetListener listener)
          Unregisters a listener.
 void setStaticColor(java.awt.Color col)
          Change the static glyph color for this dataset.
 
Methods inherited from interface sonification.dataimport.visbards_resourcetoolkit.model.RangeModelListener
rangeModelChanged
 
Methods inherited from interface sonification.dataimport.visbards_resourcetoolkit.model.PropertyContainerListener
propertyChanged
 
Methods inherited from interface sonification.dataimport.visbards_resourcetoolkit.model.ModeManagerListener
modeChanged
 

Method Detail

getName

java.lang.String getName()
Returns the name of the dataset.


attach

void attach(PropertyContainer container,
            RangeModel model,
            Universe uni)
Visualise this dataset to the universe.


detach

void detach()
Detatch stop visualising this dataset.


getRowRange

Range getRowRange()
Returns the currently displayed row range


getNumGlyphsDisplayed

int getNumGlyphsDisplayed()
Returns the number of currently displayed glyphs


setStaticColor

void setStaticColor(java.awt.Color col)
Change the static glyph color for this dataset. (The color to render glyphs in case the static color property is set to true)


getStaticColor

java.awt.Color getStaticColor()
Returns the static glyph color for this dataset.


findGlyphRow

int findGlyphRow(Glyph g)
Returns the row address of the glyph. Returns -1 if glyph does not belong to this dataset.


findMiddleVisibleGlyph

Glyph findMiddleVisibleGlyph()
Returns the middle vissible glyph of this dataset.


getPropertyContainer

PropertyContainer getPropertyContainer()
Returns the property container of the dataset.


getDefaultPropertyContainer

PropertyContainer getDefaultPropertyContainer()
Returns the default property container of this dataset.


getBasePropVal

java.lang.Object getBasePropVal(Property prop)
This method either returns datasets own property value, if n/a returns value from the default property container.


getRepository

Repository getRepository()
Returns the repository of this dataset.


getSelectedRow

int getSelectedRow()
Returns the currently selected row. -1 if unselected.


addListener

void addListener(DatasetListener listener)
Registers a listener.


removeListener

void removeListener(DatasetListener listener)
Unregisters a listener.