Package uk.ac.starlink.topcat.plot2
Class MultiController<C>
java.lang.Object
uk.ac.starlink.topcat.plot2.MultiController<C>
- Type Parameters:
C
- object that manages fixedControl
s 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
Control
s in the non-layer part of the control stack.- Since:
- 12 Feb 2016
- Author:
- Mark Taylor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Defines 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.void
Sets 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 objectC
zfact
- 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
Returns the controller associated with a particular zone. This should be for a zone that has previously been submitted with a call tosetZones
.- Parameters:
zid
- zone id- Returns:
- controller for zone
-
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
Returns a map of zone ids to controller objects.- Returns:
- controller map
-