Class MultiController<C>
java.lang.Object
uk.ac.starlink.topcat.plot2.MultiController<C>
- Type Parameters:
C- object that manages fixedControls in the stack
- Direct Known Subclasses:
MultiShaderController
Manaages control of controller objects that work with multiple plotting
zones. A controller (the parameterised type
<C>)
in this context is an object that manages one or more fixed
Controls in the non-layer part of the control stack.- Since:
- 12 Feb 2016
- Author:
- Mark Taylor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDefines how to interact with members of this class's controller type. -
Constructor Summary
ConstructorsConstructorDescriptionMultiController(MultiController.ControllerFactory<C> cfact, ZoneFactory zfact, MultiConfigger configger) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns this controller's config manager.getController(ZoneId zid) Returns the controller associated with a particular zone.Returns a map of zone ids to controller objects.Control[]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.voidSets the list of zone obects that are to be visible in the current state of the GUI.
-
Constructor Details
-
MultiController
public MultiController(MultiController.ControllerFactory<C> cfact, ZoneFactory zfact, MultiConfigger configger) Constructor.- Parameters:
cfact- encapsulates management with a particular type of controller objectCzfact- zone id factoryconfigger- manages global and per-zone axis config items
-
-
Method Details
-
getStackControls
Returns the fixed controls managed by this object that can be inserted into the control stack. The return value does not change over the lifetime of this object.- Returns:
- control array
-
getController
-
getConfigger
Returns this controller's config manager.- Returns:
- configger manages global and per-zone axis config items
-
setZones
Sets the list of zone obects that are to be visible in the current state of the GUI.- Parameters:
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 elements
-
getZones
Returns the currently available list of zones.- Returns:
- most recently submitted zone list
-
getControllerMap
-