Package uk.ac.starlink.topcat.plot2
Class MatrixLayerManager
java.lang.Object
uk.ac.starlink.topcat.plot2.MatrixLayerManager
- All Implemented Interfaces:
ZoneLayerManager
LayerManager implementation for use with the Matrix plot.
- Since:
- 20 Sep 2023
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLayers
(uk.ac.starlink.ttools.plot2.Ganger<?, ?> ganger) Returns the layers contributed by this control.Map<FormControl,
List<uk.ac.starlink.ttools.plot2.PlotLayer>> getLayersByControl
(uk.ac.starlink.ttools.plot2.Ganger<?, ?> ganger) Returns a map associating plot layers with form controls that are associated with this object.Returns a map associating plot styles with RowSubsets for the current configuration.boolean
Indicates whether this control will yield any layers in its current state.
-
Constructor Details
-
MatrixLayerManager
Constructor.- Parameters:
flc
- manages coordinates and subsets
-
-
Method Details
-
hasLayers
public boolean hasLayers()Description copied from interface:ZoneLayerManager
Indicates whether this control will yield any layers in its current state. It returns true ifgetLayers
will return a non-empty array. False positives are best avoided, but permitted.- Specified by:
hasLayers
in interfaceZoneLayerManager
- Returns:
- true if there is a non-zero number of layers
-
getStylesBySubset
Description copied from interface:ZoneLayerManager
Returns a map associating plot styles with RowSubsets for the current configuration.- Specified by:
getStylesBySubset
in interfaceZoneLayerManager
- Returns:
- ordered RowSubset->Styles map
-
getLayersByControl
public Map<FormControl,List<uk.ac.starlink.ttools.plot2.PlotLayer>> getLayersByControl(uk.ac.starlink.ttools.plot2.Ganger<?, ?> ganger) Description copied from interface:ZoneLayerManager
Returns a map associating plot layers with form controls that are associated with this object.- Specified by:
getLayersByControl
in interfaceZoneLayerManager
- Parameters:
ganger
- ganger- Returns:
- FormControl->PlotLayers map
-
getLayers
Description copied from interface:ZoneLayerManager
Returns the layers contributed by this control.- Specified by:
getLayers
in interfaceZoneLayerManager
- Parameters:
ganger
- ganger within which layers will be used- Returns:
- layers
-