public interface CoordPanel
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(ActionListener listener)
Adds a listener which will be notified when the coordinate selection
changes.
|
uk.ac.starlink.ttools.plot2.data.Coord[] |
getAdditionalManagedCoords()
Returns a list of coordinates which do not correspond to the
selectors displayed here, but which should not be acquired by
other means.
|
ColumnDataComboBoxModel |
getColumnSelector(int ic,
int iu)
Returns the selector component model for a given user coordinate.
|
JComponent |
getComponent()
Returns the graphical component for this object.
|
default uk.ac.starlink.ttools.plot2.config.ConfigMap |
getConfig()
Returns the config map associated with this panel.
|
ConfigSpecifier |
getConfigSpecifier()
Returns this panel's config specifier.
|
GuiCoordContent[] |
getContents()
Returns the coordinate values currently selected in this panel.
|
uk.ac.starlink.ttools.plot2.data.Coord[] |
getCoords()
Returns the coordinates which this panel is getting values for.
|
void |
removeActionListener(ActionListener listener)
Removes a listener which was added previously.
|
void |
setTable(TopcatModel tcModel,
boolean autoPopulate)
Sets the table with reference to which this panel will resolve
coordinate descriptions.
|
uk.ac.starlink.ttools.plot2.data.Coord[] getCoords()
ConfigSpecifier getConfigSpecifier()
JComponent getComponent()
void addActionListener(ActionListener listener)
listener
- listenervoid removeActionListener(ActionListener listener)
listener
- listenervoid setTable(TopcatModel tcModel, boolean autoPopulate)
If the existing selected coordinate values still make sense
(if the new table has sufficiently compatible column names),
they are retained. If the columns cannot be retained they are
cleared, and in that case if the autopopulate
parameter
is set, some default columns will be used.
tcModel
- table from which coordinate values will be drawnautoPopulate
- whether to autopopulate columns when old ones
can't be used or are absentGuiCoordContent[] getContents()
required
coord values are filled in)
then null will be returned.ColumnDataComboBoxModel getColumnSelector(int ic, int iu)
ic
- coord indexiu
- user info index for the given coorduk.ac.starlink.ttools.plot2.data.Coord[] getAdditionalManagedCoords()
This is a hack to work round situations when coordinates are added into results by non-obvious means. In most cases the output result will be an empty array, which is what the implementation in this class does. But subclasses can override it for special behaviour.
default uk.ac.starlink.ttools.plot2.config.ConfigMap getConfig()
getConfigSpecifier().getSpecifiedValue()
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.