|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Defines the data model for Parallel Coordinate visualisation. The model is defined as read-only because the source of the data is not known and currently no data modification operations are provided. An optional writeback interface might be developed in the future.
| Method Summary | |
void |
addChangeListener(javax.swing.event.ChangeListener l)
Subscribes a ChangeListener with the model. |
java.lang.String |
getAxisLabel(int dimension)
Returns a String label for a specific dimension. |
float |
getMaxValue(int dimension)
Returns the maximum value for the given dimension. |
float |
getMinValue(int dimension)
Returns the minimum value for the given dimension. |
int |
getNumDimensions()
Returns the number of dimensions (=columns) of the dataset. |
int |
getNumRecords()
Returns the number of records in the dataset. |
java.lang.String |
getRecordLabel(int num)
Returns a human-readable label for a specific record. |
float |
getValue(int record,
int dimension)
Returns a specific value of the dataset. |
java.lang.String |
getValueLabel(int dimension,
float value)
Returns the label for a single value in a specific dimension, if present. |
java.util.Hashtable |
getValueLabels(int dimension)
Returns a Hashtable with labels for specific values. |
float[] |
getValues(int record)
Returns all values of a specific record. |
void |
removeChangeListener(javax.swing.event.ChangeListener l)
Removes a previously subscribed changeListener. |
| Method Detail |
public void addChangeListener(javax.swing.event.ChangeListener l)
l - The ChangeListener to be notified when values change.public void removeChangeListener(javax.swing.event.ChangeListener l)
l - The ChangeListener to be removed from the model.public int getNumDimensions()
public int getNumRecords()
public float getMaxValue(int dimension)
public float getMinValue(int dimension)
public float getValue(int record,
int dimension)
record - The number of the record to be queried.dimension - The value of the record to be returned.
public float[] getValues(int record)
record - The number of the record to be returned.
public java.lang.String getAxisLabel(int dimension)
dimension - The dimension.
public java.util.Hashtable getValueLabels(int dimension)
dimension - The dimension to retrieve value labels for.
public java.lang.String getValueLabel(int dimension,
float value)
dimension - The dimension.value - The value to look up a label for.
public java.lang.String getRecordLabel(int num)
num - The record number.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||