|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.starlink.topcat.plot.SphericalAxesSelector
public class SphericalAxesSelector
AxesSelector implementation which queries for spherical polar coordinates and yields 3D Cartesian ones.
| Constructor Summary | |
|---|---|
SphericalAxesSelector(ToggleButtonModel logToggler,
ToggleButtonModel tangentErrorToggler,
ErrorModeSelectionModel radialErrorModeModel)
Constructor. |
|
| 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 AxesSelector.getData() will
return. |
uk.ac.starlink.table.ValueInfo |
getRadialInfo()
Returns metadata describing the currently selected radial coordinate. |
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 |
setRadialVisible(boolean vis)
Determines whether the radial axis control is visible. |
void |
setTable(TopcatModel tcModel)
Set up column selectors correctly for the given model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SphericalAxesSelector(ToggleButtonModel logToggler,
ToggleButtonModel tangentErrorToggler,
ErrorModeSelectionModel radialErrorModeModel)
logToggler - model for determining whether the radial coordinate
is to be scaled logarithmicallytangentErrorToggler - model indicating whether tangential
errors will be drawnradialErrorModeModel - model indicating whether/how radial
errors will be drawn| Method Detail |
|---|
public JComponent getColumnSelectorPanel()
AxesSelector
getColumnSelectorPanel in interface AxesSelectorpublic JComboBox[] getColumnSelectors()
AxesSelector
getColumnSelectors in interface AxesSelectorpublic int getNdim()
AxesSelectorAxesSelector.getData() will
return.
getNdim in interface AxesSelectorpublic boolean isReady()
AxesSelector
isReady 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()
AxesSelectorSee the notes in AxesSelector.getData() about table equality -
the same constraints apply.
getErrorData 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 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 store
public uk.ac.starlink.ttools.plot.ErrorMode[] getErrorModes()
AxesSelector
getErrorModes in interface AxesSelectorpublic AxisEditor[] createAxisEditors()
AxesSelector
createAxisEditors in interface AxesSelectorpublic void setTable(TopcatModel tcModel)
AxesSelector
setTable in interface AxesSelectortcModel - table for which selectors must be configuredpublic void initialiseSelectors()
AxesSelector
initialiseSelectors in interface AxesSelectorpublic void addActionListener(ActionListener listener)
AxesSelector
addActionListener in interface AxesSelectorlistener - listener to addpublic void removeActionListener(ActionListener listener)
AxesSelectorAxesSelector.addActionListener(java.awt.event.ActionListener).
removeActionListener in interface AxesSelectorlistener - listener to removepublic void setRadialVisible(boolean vis)
vis - whether the radial control is visiblepublic uk.ac.starlink.table.ValueInfo getRadialInfo()
null is returned.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||