Package uk.ac.starlink.topcat.plot2
Class LayerCommand<S extends uk.ac.starlink.ttools.plot.Style>
java.lang.Object
uk.ac.starlink.topcat.plot2.LayerCommand<S>
Specifies the characteristics of a new plot layer to add to a plot.
- Since:
- 18 Dec 2013
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionLayerCommand
(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. -
Method Summary
Modifier and TypeMethodDescriptionuk.ac.starlink.ttools.plot2.config.ConfigMap
Returns a configuration map containing any explicit values required for layer configuration.static String
getInputName
(uk.ac.starlink.ttools.plot2.data.Input input) Obtains a unique name for an input coordinate specifier.Returns a mapping which gives the values of the input coordinates used by the layer.uk.ac.starlink.ttools.plot2.Plotter
<S> Returns the plotter that will generate the layer.Returns the row subset for which the layer is to be plotted.Returns the table supplying the table data.toString()
-
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
- plottertcModel
- table providing plot datainputValues
- string values to be entered into column input fields, keyed by coordinate input short nameconfig
- configuration options to apply to the plot; default values will be used for any not suppliedrset
- row subset for which the plot will be made
-
-
Method Details
-
getPlotter
Returns the plotter that will generate the layer.- Returns:
- plotter
-
getTopcatModel
Returns the table supplying the table data. May be null for a data-less layer.- Returns:
- table
-
getInputValues
Returns a mapping which gives the values of the input coordinates used by the layer. The map keys are obtained fromgetInputName(uk.ac.starlink.ttools.plot2.data.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
Returns the row subset for which the layer is to be plotted.- Returns:
- row subset
-
toString
-
getInputName
Obtains a unique name for an input coordinate specifier.- Parameters:
input
- input coordinate specifier- Returns:
- name suitable as map key
-