Class DatalessLayerControl
java.lang.Object
uk.ac.starlink.topcat.plot2.TabberControl
uk.ac.starlink.topcat.plot2.ConfigControl
uk.ac.starlink.topcat.plot2.SingleZoneLayerControl
uk.ac.starlink.topcat.plot2.DatalessLayerControl
- All Implemented Interfaces:
Configger, Control, LayerControl
Minimal LayerControl implementation.
Suitable for basic plotters with no table data, so no coordpanels required.
Currently, no legend entries are reported either.
- Since:
- 10 Apr 2017
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionDatalessLayerControl(uk.ac.starlink.ttools.plot2.Plotter<?> plotter, uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> zsel, Configger baseConfigger) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetCoordLabel(String userCoordName) Returns a text label associated with one of the user coords for this control, typically the name of the column or expression supplying the data.uk.ac.starlink.ttools.plot2.LegendEntry[]Returns legend entries associated with this control.uk.ac.starlink.ttools.plot2.Plotter<?>[]Returns a list of the plotters that will be used by this control to create layers.protected SingleZoneLayerReturns the layer produced by this control.Returns the selection widget for choosing which table this control is working with.uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> Returns a specifier that determines which zone of a multi-zone plot this control's layers will be displayed in.Methods inherited from class SingleZoneLayerControl
getLayers, hasLayers, submitReportsMethods inherited from class ConfigControl
addSpecifierTab, getConfig, getConfigSpecifiersMethods inherited from class TabberControl
addActionListener, addControlTab, addZoneTab, getActionForwarder, getControlIcon, getControlLabel, getPanel, getTabber, removeActionListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Control
addActionListener, getControlIcon, getControlLabel, getPanel, removeActionListener
-
Constructor Details
-
DatalessLayerControl
public DatalessLayerControl(uk.ac.starlink.ttools.plot2.Plotter<?> plotter, uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> zsel, Configger baseConfigger) Constructor.- Parameters:
plotter- plotterzsel- zone id specifier, may be null for single-zone casebaseConfigger- provides global configuration info
-
-
Method Details
-
getPlotters
public uk.ac.starlink.ttools.plot2.Plotter<?>[] getPlotters()Description copied from interface:LayerControlReturns a list of the plotters that will be used by this control to create layers.- Returns:
- list of active plotters
-
getSingleZoneLayer
Description copied from class:SingleZoneLayerControlReturns the layer produced by this control.- Specified by:
getSingleZoneLayerin classSingleZoneLayerControl- Returns:
- single zone layer, or null if none is active
-
getLegendEntries
public uk.ac.starlink.ttools.plot2.LegendEntry[] getLegendEntries()Description copied from interface:LayerControlReturns legend entries associated with this control.- Returns:
- legend entries
-
getCoordLabel
Description copied from interface:LayerControlReturns a text label associated with one of the user coords for this control, typically the name of the column or expression supplying the data. Null may be returned if there's no good answer.- Parameters:
userCoordName- name of one of the user value infos of an input coord for this control- Returns:
- text label associated with user coordinate
-
getZoneSpecifier
Description copied from interface:LayerControlReturns a specifier that determines which zone of a multi-zone plot this control's layers will be displayed in. If this control is known to be used in a single-zone context, null should be returned.- Returns:
- zone id specifier, or null
-
getTableSelector
Description copied from interface:LayerControlReturns the selection widget for choosing which table this control is working with. If this control does not use a table, null is returned. The assumption is (currently) that a given control uses a maximum of one table.- Returns:
- table selector, or null
-