Class XYArrayCoordPanel
java.lang.Object
uk.ac.starlink.topcat.plot2.BasicCoordPanel
uk.ac.starlink.topcat.plot2.XYArrayCoordPanel
- All Implemented Interfaces:
CoordPanel, PositionCoordPanel
CoordPanel for 2-d vector-valued coordinates.
- Since:
- 26 Jan 2021
- Author:
- Mark Taylor
-
Nested Class Summary
Nested classes/interfaces inherited from class BasicCoordPanel
BasicCoordPanel.CoordStack -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMakes some attempt to fill in the fields with non-blank values.uk.ac.starlink.ttools.plot2.DataGeomReturns null.booleanisPreferredCoord(uk.ac.starlink.ttools.plot2.data.Coord coord) Indicates whether a coordinate is one that ought to get filled in if possible.Methods inherited from class BasicCoordPanel
addActionListener, addButtons, createDefaultStack, getActionForwarder, getAdditionalManagedCoords, getColumnSelector, getComponent, getConfig, getConfigSpecifier, getContents, getCoords, getInfos, getStack, getTable, multiplyCoords, populate, removeActionListener, setColumnSelector, setTableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CoordPanel
addActionListener, getAdditionalManagedCoords, getColumnSelector, getComponent, getConfig, getConfigSpecifier, getContents, getCoords, removeActionListener, setTableMethods inherited from interface PositionCoordPanel
getExtraTabs
-
Constructor Details
-
XYArrayCoordPanel
public XYArrayCoordPanel()Constructor.
-
-
Method Details
-
getDataGeom
public uk.ac.starlink.ttools.plot2.DataGeom getDataGeom()Returns null.- Specified by:
getDataGeomin interfacePositionCoordPanel- Returns:
- data geom
-
isPreferredCoord
public boolean isPreferredCoord(uk.ac.starlink.ttools.plot2.data.Coord coord) Description copied from class:BasicCoordPanelIndicates whether a coordinate is one that ought to get filled in if possible. The CoordPanel implementation simply returns coord.Coord.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.
- Overrides:
isPreferredCoordin classBasicCoordPanel- Parameters:
coord- candidate coordinate- Returns:
- true if we should try hard to get a value
-
autoPopulate
public void autoPopulate()Description copied from class:BasicCoordPanelMakes some attempt to fill in the fields with non-blank values. The default implementation fills in the first few suitable columns, but subclasses are encouraged to override this behaviour if something smarter is possible.- Overrides:
autoPopulatein classBasicCoordPanel
-