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, waitgetConfigpublic 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()
CoordPanelgetComponent in interface CoordPanelpublic uk.ac.starlink.ttools.plot2.DataGeom getDataGeom()
PositionCoordPanelgetDataGeom in interface PositionCoordPanelpublic void addActionListener(ActionListener listener)
CoordPaneladdActionListener in interface CoordPanellistener - listenerpublic void removeActionListener(ActionListener listener)
CoordPanelremoveActionListener in interface CoordPanellistener - listenerpublic void setTable(TopcatModel tcModel, boolean autoPopulate)
CoordPanelIf 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 CoordPaneltcModel - table from which coordinate values will be drawnautoPopulate - whether to autopopulate columns when old ones
can't be used or are absentpublic GuiCoordContent[] getContents()
CoordPanelrequired
coord values are filled in)
then null will be returned.getContents in interface CoordPanelpublic ColumnDataComboBoxModel getColumnSelector(int ic, int iu)
CoordPanelgetColumnSelector in interface CoordPanelic - coord indexiu - user info index for the given coordpublic uk.ac.starlink.ttools.plot2.data.Coord[] getAdditionalManagedCoords()
CoordPanelThis 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 CoordPanelpublic List<uk.ac.starlink.util.Bi<String,JComponent>> getExtraTabs()
PositionCoordPanelgetExtraTabs in interface PositionCoordPanelpublic uk.ac.starlink.ttools.plot2.data.Coord[] getCoords()
CoordPanelgetCoords in interface CoordPanelpublic ConfigSpecifier getConfigSpecifier()
CoordPanelgetConfigSpecifier in interface CoordPanelCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.