|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsonification.dataimport.visbards_resourcetoolkit.repository.category.DefaultPseudoCategory
public class DefaultPseudoCategory
| Field Summary | |
|---|---|
protected java.lang.String |
fName
|
protected Range |
fOverallRange
|
protected ColorPalette |
fPalette
|
protected Category |
fParent
|
protected Range |
fRange
|
protected CategoryType |
fType
|
| Constructor Summary | |
|---|---|
DefaultPseudoCategory(Category parent,
boolean presentational)
|
|
| Method Summary | |
|---|---|
void |
addListener(CategoryListener listener)
Registers a listener to this instance. |
void |
addListener(PseudoCategoryListener listener)
Registers a listener. |
boolean |
equals(java.lang.Object obj)
|
protected void |
firePseudoCategoryChanged()
Sends an event to the listeners to indicate that this pseudo category has changed. |
ColorPalette |
getColorPalette()
Returns the color palette for this category. |
java.lang.String |
getHolderID()
Returns a string which identifies this object uniquely. |
java.lang.String |
getName()
Returns the display name of this category. |
Range |
getOverallRange()
Returns the overall data range for this category. |
Category |
getParent()
Returns the parent of this pseudocategory |
Range |
getRange()
Returns the data range for this category. |
float |
getScalar(Repository rep,
int row)
Computes a scalar for this pseudo-category using data from the specified repository FOR the specified row. |
double |
getScalarDouble(Repository rep,
int row)
Computes a scalar for this pseudo-category using data from the specified repository FOR the specified row. |
java.util.HashMap |
getSettings()
Returns a hashmap of settings (strings) which represent the current object state, and are keyed by string names. |
CategoryType |
getType()
Returns the type of this category. |
float[] |
getVector(Repository rep,
int row)
Computes a vector for this pseudo-category using data from the specified repository FOR the specified row. |
double[] |
getVectorDouble(Repository rep,
int row)
Computes a vector for this pseudo-category using data from the specified repository FOR the specified row. |
boolean |
isPresentational()
Returns true if category is presentational. |
boolean |
isPseudo()
This is not an implementation of a pseudo category. |
void |
pseudoCategoryChanged(PseudoCategory source)
An event that indicates that this pseudo category has changed how it computes its values. |
void |
removeListener(CategoryListener listener)
Unregisters a listener. |
void |
removeListener(PseudoCategoryListener listener)
Unregisters a listener. |
void |
setColorPalette(ColorPalette pal)
Changes the color palette. |
void |
setOverallRange(Range rng)
Changes the overall data range for this category. |
void |
setRange(Range rng)
Changes the data range for this category. |
void |
setSettings(java.util.HashMap settings)
Changes the settings of this object to match the settings in the specified hashmap. |
java.lang.String |
toString()
Basic output |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface sonification.dataimport.visbards_resourcetoolkit.repository.category.Category |
|---|
addListener, getColorPalette, getName, getOverallRange, getRange, getType, isPresentational, removeListener, setColorPalette, setOverallRange, setRange |
| Methods inherited from interface sonification.dataimport.visbards_resourcetoolkit.model.SettingsHolder |
|---|
getHolderID, getSettings, setSettings |
| Field Detail |
|---|
protected Category fParent
protected java.lang.String fName
protected CategoryType fType
protected ColorPalette fPalette
protected Range fRange
protected Range fOverallRange
| Constructor Detail |
|---|
public DefaultPseudoCategory(Category parent,
boolean presentational)
| Method Detail |
|---|
public float getScalar(Repository rep,
int row)
PseudoCategory
getScalar in interface PseudoCategory
public float[] getVector(Repository rep,
int row)
PseudoCategory
getVector in interface PseudoCategory
public double getScalarDouble(Repository rep,
int row)
PseudoCategory
getScalarDouble in interface PseudoCategory
public double[] getVectorDouble(Repository rep,
int row)
PseudoCategory
getVectorDouble in interface PseudoCategorypublic Category getParent()
getParent in interface PseudoCategorypublic boolean isPseudo()
isPseudo in interface Categoryprotected void firePseudoCategoryChanged()
public void addListener(PseudoCategoryListener listener)
addListener in interface PseudoCategorypublic void removeListener(PseudoCategoryListener listener)
removeListener in interface PseudoCategorypublic void pseudoCategoryChanged(PseudoCategory source)
pseudoCategoryChanged in interface PseudoCategoryListenerpublic java.lang.String getName()
getName in interface Categorypublic CategoryType getType()
getType in interface Categorypublic boolean isPresentational()
isPresentational in interface Categorypublic ColorPalette getColorPalette()
getColorPalette in interface Categorypublic void setColorPalette(ColorPalette pal)
setColorPalette in interface Categorypublic Range getRange()
getRange in interface Categorypublic void setRange(Range rng)
setRange in interface Categorypublic Range getOverallRange()
getOverallRange in interface Categorypublic void setOverallRange(Range rng)
setOverallRange in interface Categorypublic void addListener(CategoryListener listener)
addListener in interface Categorypublic void removeListener(CategoryListener listener)
removeListener in interface Categorypublic java.util.HashMap getSettings()
getSettings in interface SettingsHolderpublic void setSettings(java.util.HashMap settings)
setSettings in interface SettingsHolderpublic java.lang.String getHolderID()
getHolderID in interface SettingsHolderpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||