public abstract class LayerControlAction extends BasicAction
Constructor and Description |
---|
LayerControlAction(uk.ac.starlink.ttools.plot2.Plotter plotter,
ControlStack stack)
Constructs a LayerControlAction from a Plotter.
|
LayerControlAction(java.lang.String name,
javax.swing.Icon layerIcon,
java.lang.String descrip,
ControlStack stack)
Constructs a LayerControlAction from name, icon and description.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt) |
abstract LayerControl |
createLayerControl()
Creates a layer control for this action's plotter.
|
static LayerControlAction |
createPlotterAction(uk.ac.starlink.ttools.plot2.Plotter plotter,
ControlStack stack,
ZoneFactory zfact,
NextSupplier nextSupplier,
TopcatListener tcListener,
MultiConfigger baseConfigger)
Attempts to return an instance of this class corresponding to
a given plotter.
|
getEventWindow
public LayerControlAction(java.lang.String name, javax.swing.Icon layerIcon, java.lang.String descrip, ControlStack stack)
name
- action namelayerIcon
- icon representing the type of layer the action
will add; it may get doctored to generate the
icon for this actiondescrip
- action descriptionstack
- plot stackpublic LayerControlAction(uk.ac.starlink.ttools.plot2.Plotter plotter, ControlStack stack)
plotter
- plotter which will be added to the stackstack
- plot stackpublic abstract LayerControl createLayerControl()
public void actionPerformed(java.awt.event.ActionEvent evt)
public static LayerControlAction createPlotterAction(uk.ac.starlink.ttools.plot2.Plotter plotter, ControlStack stack, ZoneFactory zfact, NextSupplier nextSupplier, TopcatListener tcListener, MultiConfigger baseConfigger)
plotter
- plotter to provide an action forstack
- stack to which controls are to be addedzfact
- zone id factorynextSupplier
- manages global dispensing for some style optionstcListener
- listener for TopcatEventsbaseConfigger
- configuration source for some global config
optionsCopyright ? 2003-2017 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.