|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AxesSelector
Defines an object which provides column selectors for a plot.
An instance of this interface is owned by each PointSelector
.
Method Summary | |
---|---|
void |
addActionListener(ActionListener listener)
Adds a listener which is notified when any of the selections made by this component changes. |
AxisEditor[] |
createAxisEditors()
Constructs an array of AxisEditor objects suitable for modifying the axes which are defined by this selector. |
PointStore |
createPointStore(int npoint)
Returns a PointStore suitable for storing coordinate and error information generated by the current state of this selector. |
JComponent |
getColumnSelectorPanel()
Returns the panel which contains column selectors and any other UI components that the concrete subclass wants to place. |
JComboBox[] |
getColumnSelectors()
Returns the array of combo boxes which are used to select column or other values. |
uk.ac.starlink.table.StarTable |
getData()
Returns a StarTable which corresponds to the data in the columns selected by the current selections on this object. |
uk.ac.starlink.table.StarTable |
getErrorData()
Returns a StarTable which corresponds to the error data defined by the current selections. |
uk.ac.starlink.ttools.plot.ErrorMode[] |
getErrorModes()
Returns the error modes currently in force for this selector. |
uk.ac.starlink.table.StarTable |
getLabelData()
Returns a StarTable whose single column contains a label for each point. |
int |
getNdim()
Returns the number of columns in the table that getData() will
return. |
void |
initialiseSelectors()
Hint to set up the values of the column selectors to a sensible value. |
boolean |
isReady()
Indicates whether this selector has enough state filled in to be able to specify some point data. |
void |
removeActionListener(ActionListener listener)
Removes a listener added by addActionListener(java.awt.event.ActionListener) . |
void |
setTable(TopcatModel tcModel)
Set up column selectors correctly for the given model. |
Method Detail |
---|
JComponent getColumnSelectorPanel()
JComboBox[] getColumnSelectors()
void setTable(TopcatModel tcModel)
tcModel
- table for which selectors must be configuredvoid initialiseSelectors()
void addActionListener(ActionListener listener)
listener
- listener to addvoid removeActionListener(ActionListener listener)
addActionListener(java.awt.event.ActionListener)
.
listener
- listener to removeint getNdim()
getData()
will
return.
boolean isReady()
uk.ac.starlink.table.StarTable getData()
Note: for performance reasons, it is imperative that
two tables returned from this method must match according to the
Object.equals(java.lang.Object)
method if they are known to
contain the same cell data (i.e. if the state of this selector
has not changed in the mean time). Don't forget to do
hashCode
too.
uk.ac.starlink.table.StarTable getErrorData()
See the notes in getData()
about table equality -
the same constraints apply.
uk.ac.starlink.table.StarTable getLabelData()
See the notes in getData()
about table equality -
the same constraints apply.
AxisEditor[] createAxisEditors()
PointStore createPointStore(int npoint)
npoint
points, and
its PointStore.storePoint(java.lang.Object[], java.lang.Object[], java.lang.String)
method will be called with
the result of acquiring rows from the tables got from this
selector's getData()
and getErrorData()
methods.
npoint
- number of points to store
uk.ac.starlink.ttools.plot.ErrorMode[] getErrorModes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |