Package uk.ac.starlink.topcat.plot2
Class SingleZoneLayer
java.lang.Object
uk.ac.starlink.topcat.plot2.SingleZoneLayer
Represents a PlotLayer and associated information when it is to be
used within a single plot zone.
- Since:
- 18 Aug 2023
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionSingleZoneLayer
(uk.ac.starlink.ttools.plot2.PlotLayer plotLayer, uk.ac.starlink.ttools.plot2.config.ConfigMap config, String leglabel) Constructor for dataless layer.SingleZoneLayer
(uk.ac.starlink.ttools.plot2.PlotLayer plotLayer, uk.ac.starlink.ttools.plot2.config.ConfigMap config, String leglabel, TopcatModel tcModel, GuiCoordContent[] contents, RowSubset rset) General constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the layer identifier.uk.ac.starlink.ttools.plot2.PlotLayer
Returns the plot layer.toGangLayer
(uk.ac.starlink.ttools.plot2.Ganger<?, ?> ganger, uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> zsel) Converts this single-zone layer to a TopcatLayer.
-
Constructor Details
-
SingleZoneLayer
public SingleZoneLayer(uk.ac.starlink.ttools.plot2.PlotLayer plotLayer, uk.ac.starlink.ttools.plot2.config.ConfigMap config, String leglabel, TopcatModel tcModel, GuiCoordContent[] contents, RowSubset rset) General constructor.- Parameters:
plotLayer
- plot layerconfig
- configuration items that generated this layer (superset is permitted)leglabel
- label used in the legend; if null, excluded from the legendtcModel
- topcat model producing layer, may be nullcontents
- information about data columns used to construct plot (superset is not permitted)rset
- row subset for which layer is plotted
-
SingleZoneLayer
public SingleZoneLayer(uk.ac.starlink.ttools.plot2.PlotLayer plotLayer, uk.ac.starlink.ttools.plot2.config.ConfigMap config, String leglabel) Constructor for dataless layer.- Parameters:
plotLayer
- plot layerconfig
- configuration items that generated this layer (superset is permitted)leglabel
- label used in the legend; if null, excluded from the legend
-
-
Method Details
-
getPlotLayer
public uk.ac.starlink.ttools.plot2.PlotLayer getPlotLayer()Returns the plot layer.- Returns:
- plot layer
-
getLayerId
Returns the layer identifier.- Returns:
- layer ID
-
toGangLayer
public TopcatLayer toGangLayer(uk.ac.starlink.ttools.plot2.Ganger<?, ?> ganger, uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> zsel) Converts this single-zone layer to a TopcatLayer. If the supplied zone selector is non-null it will determine which zone the PlotLayer appears in, otherwise it will appear in the first (and presumably only) zone.- Parameters:
ganger
- gangerzsel
- zone selector, may be null- Returns:
- topcat layer containing this layer
-