public class AugmentedAxesSelector extends Object implements AxesSelector, uk.ac.starlink.util.Wrapper
setAuxVisible(int)
method.Constructor and Description |
---|
AugmentedAxesSelector(AxesSelector baseSelector,
int naux,
ToggleButtonModel[] logModels,
ToggleButtonModel[] flipModels,
ComboBoxModel[] shaderModels)
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.
|
CartesianAxesSelector |
getAuxSelector()
Returns the constituent selector which deals only with the auxiliary
axes.
|
Object |
getBase()
Returns the selector that this one is augmenting (before the
auxiliary axes are added to it).
|
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
AxesSelector.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
AxesSelector.addActionListener(java.awt.event.ActionListener) . |
void |
setAuxVisible(int nVis)
Sets the number of auxiliary axis selectors which are visible.
|
void |
setTable(TopcatModel tcModel)
Set up column selectors correctly for the given model.
|
public AugmentedAxesSelector(AxesSelector baseSelector, int naux, ToggleButtonModel[] logModels, ToggleButtonModel[] flipModels, ComboBoxModel[] shaderModels)
baseSelector
- the base selector to which this will append
auxiliary axesnaux
- number of auxiliary axes to appendlogModels
- naux
-element array of models flagging
per-axis log scaling (or null)flipModels
- naux
-element array of models flagging
per-axis sense inversion (or null)shaderModels
- naux
-element array of combo box
models to display with each aux axis (or null)public Object getBase()
getBase
in interface uk.ac.starlink.util.Wrapper
public CartesianAxesSelector getAuxSelector()
public void setAuxVisible(int nVis)
nVis
axes visible.nVis
- number of auxiliary axis selectors to showpublic JComponent getColumnSelectorPanel()
AxesSelector
getColumnSelectorPanel
in interface AxesSelector
public JComboBox[] getColumnSelectors()
AxesSelector
getColumnSelectors
in interface AxesSelector
public int getNdim()
AxesSelector
AxesSelector.getData()
will
return.getNdim
in interface AxesSelector
public boolean isReady()
AxesSelector
isReady
in interface AxesSelector
public uk.ac.starlink.table.StarTable getData()
AxesSelector
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.
getData
in interface AxesSelector
public uk.ac.starlink.table.StarTable getErrorData()
AxesSelector
See the notes in AxesSelector.getData()
about table equality -
the same constraints apply.
getErrorData
in interface AxesSelector
public uk.ac.starlink.ttools.plot.ErrorMode[] getErrorModes()
AxesSelector
getErrorModes
in interface AxesSelector
public uk.ac.starlink.table.StarTable getLabelData()
AxesSelector
See the notes in AxesSelector.getData()
about table equality -
the same constraints apply.
getLabelData
in interface AxesSelector
public AxisEditor[] createAxisEditors()
AxesSelector
createAxisEditors
in interface AxesSelector
public PointStore createPointStore(int npoint)
AxesSelector
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 AxesSelector.getData()
and AxesSelector.getErrorData()
methods.createPointStore
in interface AxesSelector
npoint
- number of points to storepublic void setTable(TopcatModel tcModel)
AxesSelector
setTable
in interface AxesSelector
tcModel
- table for which selectors must be configuredpublic void initialiseSelectors()
AxesSelector
initialiseSelectors
in interface AxesSelector
public void addActionListener(ActionListener listener)
AxesSelector
addActionListener
in interface AxesSelector
listener
- listener to addpublic void removeActionListener(ActionListener listener)
AxesSelector
AxesSelector.addActionListener(java.awt.event.ActionListener)
.removeActionListener
in interface AxesSelector
listener
- listener to removeCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.