C
- object that manages fixed Control
s in the stackMultiAxisController
, MultiShaderController
public class MultiController<C>
extends java.lang.Object
<C>
)
in this context is an object that manages one or more fixed
Control
s in the non-layer part of the control stack.Modifier and Type | Class | Description |
---|---|---|
static interface |
MultiController.ControllerFactory<C> |
Defines how to interact with members of this class's controller type.
|
Constructor | Description |
---|---|
MultiController(MultiController.ControllerFactory<C> cfact,
ZoneFactory zfact,
MultiConfigger configger) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
MultiConfigger |
getConfigger() |
Returns this controller's config manager.
|
C |
getController(ZoneId zid) |
Returns the controller associated with a particular zone.
|
protected java.util.Map<ZoneId,C> |
getControllerMap() |
Returns a map of zone ids to controller objects.
|
Control[] |
getStackControls() |
Returns the fixed controls managed by this object that can
be inserted into the control stack.
|
ZoneId[] |
getZones() |
Returns the currently available list of zones.
|
void |
setZones(ZoneId[] zones,
uk.ac.starlink.ttools.plot2.Gang gang) |
Sets the list of zone obects that are to be visible in the current
state of the GUI.
|
public MultiController(MultiController.ControllerFactory<C> cfact, ZoneFactory zfact, MultiConfigger configger)
cfact
- encapsulates management with a particular type of
controller object C
zfact
- zone id factoryconfigger
- manages global and per-zone axis config itemspublic Control[] getStackControls()
public C getController(ZoneId zid)
setZones
.zid
- zone idpublic MultiConfigger getConfigger()
public void setZones(ZoneId[] zones, uk.ac.starlink.ttools.plot2.Gang gang)
zones
- ordered list of zoneIds whose configuration will
be accessible from the GUIgang
- gang to which the zones belong;
the sequence of the zones array must match that
of the gang elementspublic ZoneId[] getZones()
Copyright © 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.