public class TopcatLayer extends Object
The resulting object is able to come up with a suitable LayerSpec.
Constructor and Description |
---|
TopcatLayer(uk.ac.starlink.ttools.plot2.PlotLayer[] plotLayers,
uk.ac.starlink.ttools.plot2.config.ConfigMap config,
String leglabel)
Constructs a layer with no table data.
|
TopcatLayer(uk.ac.starlink.ttools.plot2.PlotLayer[] plotLayers,
uk.ac.starlink.ttools.plot2.config.ConfigMap config,
String leglabel,
TopcatModel tcModel,
GuiCoordContent[] contents,
RowSubset rset)
Constructs a layer based on a table.
|
Modifier and Type | Method and Description |
---|---|
uk.ac.starlink.ttools.plot2.DataGeom |
getDataGeom()
Returns the DataGeom used by this layer.
|
uk.ac.starlink.ttools.plot2.task.LayerSpec |
getLayerSpec()
Returns a layer specification for this layer placed within
a given zone.
|
uk.ac.starlink.ttools.plot2.PlotLayer[] |
getPlotLayers()
Returns the plot layers stored by this object.
|
uk.ac.starlink.ttools.plot2.Plotter<?> |
getPlotter()
Returns the plotter used by this layer.
|
public TopcatLayer(uk.ac.starlink.ttools.plot2.PlotLayer[] plotLayers, uk.ac.starlink.ttools.plot2.config.ConfigMap config, String leglabel, TopcatModel tcModel, GuiCoordContent[] contents, RowSubset rset)
plotLayers
- per-zone array of plot layers,
at least one non-null memberconfig
- configuration used to set up the plot layers
(superset is permitted)leglabel
- label used in the legend;
if null, excluded from the legendtcModel
- TopcatModel containing the tablecontents
- information about data columns used to construct plot
(superset is not permitted)rset
- row subset for which layer is plottedpublic TopcatLayer(uk.ac.starlink.ttools.plot2.PlotLayer[] plotLayers, uk.ac.starlink.ttools.plot2.config.ConfigMap config, String leglabel)
plotLayers
- per-zone array of plot layers,
at least one non-null memberconfig
- configuration used to set up the plot layer
(superset is permitted)leglabel
- label used in the legend;
if null, excluded from the legendpublic uk.ac.starlink.ttools.plot2.Plotter<?> getPlotter()
public uk.ac.starlink.ttools.plot2.DataGeom getDataGeom()
public uk.ac.starlink.ttools.plot2.PlotLayer[] getPlotLayers()
public uk.ac.starlink.ttools.plot2.task.LayerSpec getLayerSpec()
It shouldn't be null, unless it was impossible to write the specification for some reason??
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.