public class GroupControlManager<P,A> extends Object implements ControlManager
Modifier and Type | Field and Description |
---|---|
static String |
PLOTTERS_PROP
System property that may contain a colon-separated list of
Plotter implementation class names (with no-arg constructors)
to plug in at runtime.
|
Constructor and Description |
---|
GroupControlManager(ControlStack stack,
uk.ac.starlink.ttools.plot2.PlotType<P,A> plotType,
PlotTypeGui<P,A> plotTypeGui,
ListModel<TopcatModel> tablesModel,
ZoneFactory zfact,
MultiConfigger baseConfigger,
TopcatListener tcListener)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayer(LayerCommand<?> lcmd)
Adds a layer to the plot as specified by the given layer command.
|
Control |
createDefaultControl(TopcatModel tcModel)
Returns a suitable control to add to the stack for a given table.
|
LayerControlAction[] |
getStackActions()
Returns a list of actions which can be performed to add controls
to the stack.
|
public static final String PLOTTERS_PROP
public GroupControlManager(ControlStack stack, uk.ac.starlink.ttools.plot2.PlotType<P,A> plotType, PlotTypeGui<P,A> plotTypeGui, ListModel<TopcatModel> tablesModel, ZoneFactory zfact, MultiConfigger baseConfigger, TopcatListener tcListener)
stack
- control stack which this object will manageplotType
- defines basic plot characteristicsplotTypeGui
- defines GUI-specific plot characteristicstablesModel
- list of available tableszfact
- zone id factorybaseConfigger
- configuration source for some global config
optionstcListener
- listener for TopcatEvents; this manager will arrange
for it to listen to whatever is the currently
selected TopcatModelpublic LayerControlAction[] getStackActions()
ControlManager
getStackActions
in interface ControlManager
public Control createDefaultControl(TopcatModel tcModel)
ControlManager
createDefaultControl
in interface ControlManager
tcModel
- initial tablepublic void addLayer(LayerCommand<?> lcmd) throws LayerException
ControlManager
addLayer
in interface ControlManager
lcmd
- specifies the layer to addLayerException
- if the layer can't be addedCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.