public class SingleAdapterAxesController<P,A> extends Object implements AxesController<P,A>
AxisController
class.Constructor and Description |
---|
SingleAdapterAxesController(AxisController<P,A> axisController)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(ActionListener listener)
Adds a listener notified when any of the controls changes.
|
void |
configureForLayers(LayerControl[] layerControls)
Provides a hook for implementations to adjust
their GUI state based on the layer controls which will be supplying
layers for them to plot.
|
static <P,A> SingleAdapterAxesController<P,A> |
create(AxisController<P,A> axisController)
Utiilty method for instance construction.
|
uk.ac.starlink.ttools.plot2.config.ConfigMap |
getConfig()
Returns a configuration map.
|
Control[] |
getStackControls()
Returns all the controls for user configuration of this controller.
|
List<ZoneController<P,A>> |
getZoneControllers(uk.ac.starlink.ttools.plot2.Ganger<P,A> ganger)
Returns a list of zone contollers, one for each zone defined
by a supplied ganger.
|
void |
removeActionListener(ActionListener listener)
Removes a listener previously added by addActionListener.
|
public SingleAdapterAxesController(AxisController<P,A> axisController)
axisController
- object to which behaviour is delegatedcreate(uk.ac.starlink.topcat.plot2.AxisController<P, A>)
public void configureForLayers(LayerControl[] layerControls)
AxesController
configureForLayers
in interface AxesController<P,A>
layerControls
- layer controls expected to provide layers
to be plotted on these axespublic List<ZoneController<P,A>> getZoneControllers(uk.ac.starlink.ttools.plot2.Ganger<P,A> ganger)
AxesController
getZoneControllers
in interface AxesController<P,A>
ganger
- ganger, assumed to be compatible with this controllerpublic Control[] getStackControls()
AxesController
getStackControls
in interface AxesController<P,A>
public uk.ac.starlink.ttools.plot2.config.ConfigMap getConfig()
Configger
public void addActionListener(ActionListener listener)
AxesController
addActionListener
in interface AxesController<P,A>
listener
- listener to addpublic void removeActionListener(ActionListener listener)
AxesController
removeActionListener
in interface AxesController<P,A>
listener
- listener to removepublic static <P,A> SingleAdapterAxesController<P,A> create(AxisController<P,A> axisController)
axisController
- object to which behaviour is delegatedCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.