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.booleanIndicates 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:ZoneLayerManagerIndicates whether this control will yield any layers in its current state. It returns true ifgetLayerswill return a non-empty array. False positives are best avoided, but permitted.- Specified by:
hasLayersin interfaceZoneLayerManager- Returns:
- true if there is a non-zero number of layers
-
getStylesBySubset
Description copied from interface:ZoneLayerManagerReturns a map associating plot styles with RowSubsets for the current configuration.- Specified by:
getStylesBySubsetin 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:ZoneLayerManagerReturns a map associating plot layers with form controls that are associated with this object.- Specified by:
getLayersByControlin interfaceZoneLayerManager- Parameters:
ganger- ganger- Returns:
- FormControl->PlotLayers map
-
getLayers
Description copied from interface:ZoneLayerManagerReturns the layers contributed by this control.- Specified by:
getLayersin interfaceZoneLayerManager- Parameters:
ganger- ganger within which layers will be used- Returns:
- layers
-