Class CombineArrayPlotter<S extends CombineArrayPlotter.CombineArrayStyle>

java.lang.Object
uk.ac.starlink.ttools.plot2.layer.AbstractPlotter<S>
uk.ac.starlink.ttools.plot2.layer.CombineArrayPlotter<S>
All Implemented Interfaces:
Plotter<S>
Direct Known Subclasses:
LineCombineArrayPlotter, MarkCombineArrayPlotter

public abstract class CombineArrayPlotter<S extends CombineArrayPlotter.CombineArrayStyle> extends AbstractPlotter<S>
Partial Plotter implementation for plot types that combine multiple all the array-valued X and Y coordinates in a data set, and make some plot from the resulting combination. Combination is typically a mean, but can be something else.

This plotter is written to cope with blank values for one or other of the X/Y coordinates; if one is blank, it taken to indicate a sequence of values 0, 1, 2, ..., which is probably reasonable for a plot. At present, it will never be fed null values, since FloatingArrayCoord.X/Y are marked required, but if the input coordinates are changed to be optional at some point, it ought to work with that.

Since:
25 Jan 2022
Author:
Mark Taylor
  • Field Details

    • XCOMBINER_KEY

      public static final ConfigKey<Combiner> XCOMBINER_KEY
      Configuration key for X coordinate combination mode.
    • YCOMBINER_KEY

      public static final ConfigKey<Combiner> YCOMBINER_KEY
      Configuration key for Y coordinate combination mode.
    • XS_REPKEY

      public static final ReportKey<double[]> XS_REPKEY
      Report key for combined X array values.
    • YS_REPKEY

      public static final ReportKey<double[]> YS_REPKEY
      Report key for combined Y array values.
  • Constructor Details

    • CombineArrayPlotter

      protected CombineArrayPlotter(String name, Icon icon)
      Constructor.
      Parameters:
      name - plotter name
      icon - plotter icon
  • Method Details