Class XYArrayCoordPanel

java.lang.Object
uk.ac.starlink.topcat.plot2.BasicCoordPanel
uk.ac.starlink.topcat.plot2.XYArrayCoordPanel
All Implemented Interfaces:
CoordPanel, PositionCoordPanel

public class XYArrayCoordPanel extends BasicCoordPanel implements PositionCoordPanel
CoordPanel for 2-d vector-valued coordinates.
Since:
26 Jan 2021
Author:
Mark Taylor
  • Constructor Details

    • XYArrayCoordPanel

      public XYArrayCoordPanel()
      Constructor.
  • Method Details

    • getDataGeom

      public uk.ac.starlink.ttools.plot2.DataGeom getDataGeom()
      Returns null.
      Specified by:
      getDataGeom in interface PositionCoordPanel
      Returns:
      data geom
    • isPreferredCoord

      public boolean isPreferredCoord(uk.ac.starlink.ttools.plot2.data.Coord coord)
      Description copied from class: BasicCoordPanel
      Indicates 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:
      isPreferredCoord in class BasicCoordPanel
      Parameters:
      coord - candidate coordinate
      Returns:
      true if we should try hard to get a value
    • autoPopulate

      public void autoPopulate()
      Description copied from class: BasicCoordPanel
      Makes 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:
      autoPopulate in class BasicCoordPanel