public class MatrixPositionCoordPanel extends SimplePositionCoordPanel
BasicCoordPanel.CoordStack| Constructor and Description |
|---|
MatrixPositionCoordPanel()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
autoPopulate()
Makes some attempt to fill in the fields with non-blank values.
|
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.
|
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.
|
List<uk.ac.starlink.util.Bi<String,JComponent>> |
getExtraTabs()
Returns definitions for additional tabs to add alongside the
main Position tab in the FormLayerControl.
|
int |
getVisibleCoordCount()
Returns the number of coordinate entry fields currently visible.
|
boolean |
isPreferredCoord(uk.ac.starlink.ttools.plot2.data.Coord coord)
Indicates whether a coordinate is one that ought to get filled in
if possible.
|
void |
setTable(TopcatModel tcModel,
boolean autoFill)
Sets the table with reference to which this panel will resolve
coordinate descriptions.
|
createPanel, getDataGeomaddActionListener, addButtons, createDefaultStack, getActionForwarder, getColumnSelector, getComponent, getConfig, getConfigSpecifier, getInfos, getStack, getTable, multiplyCoords, populate, removeActionListener, setColumnSelectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddActionListener, getColumnSelector, getComponent, getConfig, getConfigSpecifier, removeActionListenerpublic int getVisibleCoordCount()
public List<uk.ac.starlink.util.Bi<String,JComponent>> getExtraTabs()
PositionCoordPanelpublic boolean isPreferredCoord(uk.ac.starlink.ttools.plot2.data.Coord coord)
BasicCoordPanelCoord.isRequired(),
but subclasses can override this if more nuanced behaviour is necessary.
In particular in order for autopopulation to work correctly, it may be necessary to return true for all members of a group of coordinates for which at least one has to be filled in for a viable plot.
isPreferredCoord in class BasicCoordPanelcoord - candidate coordinatepublic void autoPopulate()
BasicCoordPanelautoPopulate in class BasicCoordPanelpublic uk.ac.starlink.ttools.plot2.data.Coord[] getCoords()
BasicCoordPanelgetCoords in interface CoordPanelgetCoords in class BasicCoordPanelpublic uk.ac.starlink.ttools.plot2.data.Coord[] getAdditionalManagedCoords()
BasicCoordPanelThis 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 CoordPanelgetAdditionalManagedCoords in class BasicCoordPanelpublic GuiCoordContent[] getContents()
BasicCoordPanelrequired
coord values are filled in)
then null will be returned.getContents in interface CoordPanelgetContents in class BasicCoordPanelpublic void setTable(TopcatModel tcModel, boolean autoFill)
BasicCoordPanelIf 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 CoordPanelsetTable in class BasicCoordPaneltcModel - table from which coordinate values will be drawnautoFill - whether to autopopulate columns when old ones
can't be used or are absentCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.