ControlManagerpublic class GroupControlManager extends java.lang.Object implements ControlManager
| Constructor | Description |
|---|---|
GroupControlManager(ControlStack stack,
uk.ac.starlink.ttools.plot2.PlotType plotType,
PlotTypeGui plotTypeGui,
ZoneFactory zfact,
MultiConfigger baseConfigger,
TopcatListener tcListener) |
Constructor.
|
| Modifier and Type | Method | 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.
|
javax.swing.Action[] |
getStackActions() |
Returns a list of actions which can be performed to add controls
to the stack.
|
public GroupControlManager(ControlStack stack, uk.ac.starlink.ttools.plot2.PlotType plotType, PlotTypeGui plotTypeGui, ZoneFactory zfact, MultiConfigger baseConfigger, TopcatListener tcListener)
stack - control stack which this object will manageplotType - defines basic plot characteristicsplotTypeGui - defines GUI-specific plot characteristicszfact - 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 javax.swing.Action[] getStackActions()
ControlManagergetStackActions in interface ControlManagerpublic Control createDefaultControl(TopcatModel tcModel)
ControlManagercreateDefaultControl in interface ControlManagertcModel - initial tablepublic void addLayer(LayerCommand lcmd) throws LayerException
ControlManageraddLayer in interface ControlManagerlcmd - specifies the layer to addLayerException - if the layer can't be addedCopyright © 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.