public abstract class LayerControlAction extends BasicAction
changeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
LayerControlAction(uk.ac.starlink.ttools.plot2.Plotter<?> plotter,
ControlStack stack)
Constructs a LayerControlAction from a Plotter.
|
LayerControlAction(String name,
Icon layerIcon,
String descrip,
uk.ac.starlink.ttools.plot2.Plotter<?> plotter,
ControlStack stack)
Constructs a LayerControlAction from name, icon and description.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent evt) |
abstract LayerControl |
createLayerControl()
Creates a layer control for this action's plotter.
|
static LayerControlAction |
createPlotterAction(PlotTypeGui<?,?> plotTypeGui,
uk.ac.starlink.ttools.plot2.Plotter<?> plotter,
ControlStack stack,
ListModel<TopcatModel> tablesModel,
ZoneFactory zfact,
NextSupplier nextSupplier,
TopcatListener tcListener,
MultiConfigger baseConfigger)
Attempts to return an instance of this class corresponding to
a given plotter.
|
uk.ac.starlink.ttools.plot2.Plotter<?> |
getPlotter()
Returns the single plotter associated with this action, if any.
|
LayerControl |
grabTable(TopcatModel tcModel)
Allows this action to provide a layer control for a particular table
if it is specially suited for it.
|
create, getEventWindowaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic LayerControlAction(String name, Icon layerIcon, String descrip, uk.ac.starlink.ttools.plot2.Plotter<?> plotter, 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 descriptionplotter - single plotter associated with this layer control,
may be nullstack - 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 LayerControl grabTable(TopcatModel tcModel)
tcModel - table that could be plottedpublic void actionPerformed(ActionEvent evt)
public uk.ac.starlink.ttools.plot2.Plotter<?> getPlotter()
public static LayerControlAction createPlotterAction(PlotTypeGui<?,?> plotTypeGui, uk.ac.starlink.ttools.plot2.Plotter<?> plotter, ControlStack stack, ListModel<TopcatModel> tablesModel, ZoneFactory zfact, NextSupplier nextSupplier, TopcatListener tcListener, MultiConfigger baseConfigger)
plotTypeGui - plot typeplotter - plotter to provide an action forstack - stack to which controls are to be addedtablesModel - list of available tableszfact - zone id factorynextSupplier - manages global dispensing for some style optionstcListener - listener for TopcatEventsbaseConfigger - configuration source for some global config
optionsCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.