java.awt.event.ActionListener
, java.io.Serializable
, java.lang.Cloneable
, java.util.EventListener
, javax.swing.Action
public abstract class LayerControlAction extends BasicAction
Constructor | Description |
---|---|
LayerControlAction(java.lang.String name,
javax.swing.Icon layerIcon,
java.lang.String descrip,
ControlStack stack) |
Constructs a LayerControlAction from name, icon and description.
|
LayerControlAction(uk.ac.starlink.ttools.plot2.Plotter plotter,
ControlStack stack) |
Constructs a LayerControlAction from a Plotter.
|
Modifier and Type | Method | 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.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
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-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.