Class LayerCommand<S extends uk.ac.starlink.ttools.plot.Style>

java.lang.Object
uk.ac.starlink.topcat.plot2.LayerCommand<S>

public class LayerCommand<S extends uk.ac.starlink.ttools.plot.Style> extends Object
Specifies the characteristics of a new plot layer to add to a plot.
Since:
18 Dec 2013
Author:
Mark Taylor
  • Constructor Details

    • LayerCommand

      public LayerCommand(uk.ac.starlink.ttools.plot2.Plotter<S> plotter, TopcatModel tcModel, Map<String,String> inputValues, uk.ac.starlink.ttools.plot2.config.ConfigMap config, RowSubset rset)
      Constructor.
      Parameters:
      plotter - plotter
      tcModel - table providing plot data
      inputValues - string values to be entered into column input fields, keyed by coordinate input short name
      config - configuration options to apply to the plot; default values will be used for any not supplied
      rset - row subset for which the plot will be made
  • Method Details

    • getPlotter

      public uk.ac.starlink.ttools.plot2.Plotter<S> getPlotter()
      Returns the plotter that will generate the layer.
      Returns:
      plotter
    • getTopcatModel

      public TopcatModel getTopcatModel()
      Returns the table supplying the table data. May be null for a data-less layer.
      Returns:
      table
    • getInputValues

      public Map<String,String> getInputValues()
      Returns a mapping which gives the values of the input coordinates used by the layer. The map keys are obtained from getInputName(Input). The map values are the strings that appear in column selectors or on a command line to specify the column value - generally a column name or JEL expression.
      Returns:
      user coordinate name->specification map
    • getConfig

      public uk.ac.starlink.ttools.plot2.config.ConfigMap getConfig()
      Returns a configuration map containing any explicit values required for layer configuration. Any unspecified options will take their default values.
      Returns:
      explicit configuration options
    • getRowSubset

      public RowSubset getRowSubset()
      Returns the row subset for which the layer is to be plotted.
      Returns:
      row subset
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getInputName

      public static String getInputName(uk.ac.starlink.ttools.plot2.data.Input input)
      Obtains a unique name for an input coordinate specifier.
      Parameters:
      input - input coordinate specifier
      Returns:
      name suitable as map key