public class MultiGeomPositionCoordPanel extends Object implements PositionCoordPanel
Constructor and Description |
---|
MultiGeomPositionCoordPanel(int npos,
uk.ac.starlink.ttools.plot2.DataGeom[] geoms)
Constructs a MultiGeomPositionCoordPanel without CoordSpotters.
|
MultiGeomPositionCoordPanel(int npos,
Map<uk.ac.starlink.ttools.plot2.DataGeom,CoordSpotter[]> geomMap)
Constructs a MultiGeomPositionCoordPanel with CoordSpotters.
|
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.
|
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.
|
uk.ac.starlink.ttools.plot2.DataGeom |
getDataGeom()
Returns the position geometry that defines the mapping of input
to data coordinates.
|
List<uk.ac.starlink.util.Bi<String,JComponent>> |
getExtraTabs()
Returns definitions for additional tabs to add alongside the
main Position tab in the FormLayerControl.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfig
public MultiGeomPositionCoordPanel(int npos, uk.ac.starlink.ttools.plot2.DataGeom[] geoms)
npos
- number of sets of positional coordinates to hostgeoms
- DataGeom optionspublic MultiGeomPositionCoordPanel(int npos, Map<uk.ac.starlink.ttools.plot2.DataGeom,CoordSpotter[]> geomMap)
npos
- number of sets of positional coordinates to hostgeomMap
- map from geom to applicable CoordSpotterspublic JComponent getComponent()
CoordPanel
getComponent
in interface CoordPanel
public uk.ac.starlink.ttools.plot2.DataGeom getDataGeom()
PositionCoordPanel
getDataGeom
in interface PositionCoordPanel
public void addActionListener(ActionListener listener)
CoordPanel
addActionListener
in interface CoordPanel
listener
- listenerpublic void removeActionListener(ActionListener listener)
CoordPanel
removeActionListener
in interface CoordPanel
listener
- listenerpublic void setTable(TopcatModel tcModel, boolean autoPopulate)
CoordPanel
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.
setTable
in interface CoordPanel
tcModel
- table from which coordinate values will be drawnautoPopulate
- whether to autopopulate columns when old ones
can't be used or are absentpublic GuiCoordContent[] getContents()
CoordPanel
required
coord values are filled in)
then null will be returned.getContents
in interface CoordPanel
public ColumnDataComboBoxModel getColumnSelector(int ic, int iu)
CoordPanel
getColumnSelector
in interface CoordPanel
ic
- coord indexiu
- user info index for the given coordpublic uk.ac.starlink.ttools.plot2.data.Coord[] getAdditionalManagedCoords()
CoordPanel
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.
getAdditionalManagedCoords
in interface CoordPanel
public List<uk.ac.starlink.util.Bi<String,JComponent>> getExtraTabs()
PositionCoordPanel
getExtraTabs
in interface PositionCoordPanel
public uk.ac.starlink.ttools.plot2.data.Coord[] getCoords()
CoordPanel
getCoords
in interface CoordPanel
public ConfigSpecifier getConfigSpecifier()
CoordPanel
getConfigSpecifier
in interface CoordPanel
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.