public class CartesianAxesSelector extends Object implements AxesSelector
| Constructor and Description |
|---|
CartesianAxesSelector(String[] axisNames,
ToggleButtonModel[] logModels,
ToggleButtonModel[] flipModels,
ErrorModeSelectionModel[] errorModeModels)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
JComboBox |
getColumnSelector(int icol)
Returns one of the the column selector boxes used by this selector.
|
JComponent |
getColumnSelectorPanel()
Gets the panel which displays selectors for the columns.
|
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.
|
AxisDataSelector |
getDataSelector(int icol)
Returns one of the axis selector boxes used by this selector.
|
uk.ac.starlink.table.StarTable |
getErrorData()
Returns a StarTable containing error information as selected in
this component.
|
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
AxesSelector.getData() will
return. |
TopcatModel |
getTable()
Returns the TopcatModel for which this selector is currently selecting
axes.
|
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
AxesSelector.addActionListener(java.awt.event.ActionListener). |
void |
setTable(TopcatModel tcModel)
Set up column selectors correctly for the given model.
|
public CartesianAxesSelector(String[] axisNames, ToggleButtonModel[] logModels, ToggleButtonModel[] flipModels, ErrorModeSelectionModel[] errorModeModels)
public JComponent getColumnSelectorPanel()
getColumnSelectorPanel in interface AxesSelectorpublic JComboBox[] getColumnSelectors()
AxesSelectorgetColumnSelectors in interface AxesSelectorpublic int getNdim()
AxesSelectorAxesSelector.getData() will
return.getNdim in interface AxesSelectorpublic boolean isReady()
AxesSelectorisReady in interface AxesSelectorpublic uk.ac.starlink.table.StarTable getData()
AxesSelectorNote: 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.
getData in interface AxesSelectorpublic uk.ac.starlink.table.StarTable getErrorData()
ErrorModes currently in force to make sense of this
information.getErrorData in interface AxesSelectorpublic uk.ac.starlink.ttools.plot.ErrorMode[] getErrorModes()
AxesSelectorgetErrorModes in interface AxesSelectorpublic uk.ac.starlink.table.StarTable getLabelData()
AxesSelectorSee the notes in AxesSelector.getData() about table equality -
the same constraints apply.
getLabelData in interface AxesSelectorpublic AxisDataSelector getDataSelector(int icol)
icol - column indexpublic JComboBox getColumnSelector(int icol)
icol - column indexpublic AxisEditor[] createAxisEditors()
AxesSelectorcreateAxisEditors in interface AxesSelectorpublic PointStore createPointStore(int npoint)
AxesSelectornpoint 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 AxesSelector.getData() and AxesSelector.getErrorData() methods.createPointStore in interface AxesSelectornpoint - number of points to storepublic void setTable(TopcatModel tcModel)
AxesSelectorsetTable in interface AxesSelectortcModel - table for which selectors must be configuredpublic TopcatModel getTable()
public void initialiseSelectors()
AxesSelectorinitialiseSelectors in interface AxesSelectorpublic void addActionListener(ActionListener listener)
AxesSelectoraddActionListener in interface AxesSelectorlistener - listener to addpublic void removeActionListener(ActionListener listener)
AxesSelectorAxesSelector.addActionListener(java.awt.event.ActionListener).removeActionListener in interface AxesSelectorlistener - listener to removeCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.