public abstract class SkyPosConfigurator extends AbstractActivatorConfigurator
Modifier and Type | Class and Description |
---|---|
protected static class |
SkyPosConfigurator.SkyPosActivator
Partial activator implementation for use with SkyPosConfigurator.
|
Modifier | Constructor and Description |
---|---|
protected |
SkyPosConfigurator(TopcatModelInfo tinfo)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Activator |
createActivator(uk.ac.starlink.table.ColumnData raData,
uk.ac.starlink.table.ColumnData decData)
Constructs an Activator based on selected RA and Dec column values.
|
Activator |
getActivator()
Constructs an activator in accordance with the current state of
this GUI.
|
String |
getConfigMessage()
Returns a short status message for display to the user.
|
protected abstract String |
getSkyConfigMessage()
Returns a config message given that non-blank sky position columns
have been supplied.
|
protected ConfigState |
getSkyPosState()
Returns a partial config state, giving the current configuration
of the sky position components.
|
uk.ac.starlink.table.gui.LabelledComponentStack |
getStack()
Returns the component stack in which the RA and Dec selectors are placed.
|
protected void |
setSkyPosState(ConfigState state)
Restores the sky position configuration of this configurator
from a stored state object.
|
addActionListener, createDisplayField, createDisplayLabel, getActionForwarder, getPanel, removeActionListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSafety, getState, setState
protected SkyPosConfigurator(TopcatModelInfo tinfo)
tinfo
- topcat model informationpublic uk.ac.starlink.table.gui.LabelledComponentStack getStack()
protected abstract Activator createActivator(uk.ac.starlink.table.ColumnData raData, uk.ac.starlink.table.ColumnData decData)
raData
- right ascension in radiansdecData
- declination in radiansprotected abstract String getSkyConfigMessage()
public Activator getActivator()
ActivatorConfigurator
This method may be called often, so should be cheap to invoke. The idea is that it will be called immediately before the activator is used, so the returned object may fix, rather than arrange to gather at a later date, information acquired from the GUI.
ActivatorConfigurator.getConfigMessage()
public String getConfigMessage()
ActivatorConfigurator
As a rule, exactly one of this method and the
getActivator
should return null.
If there is no activator, this method should return some
reason why the configuration is incorrect or incomplete,
and otherwise it should return null.
protected ConfigState getSkyPosState()
protected void setSkyPosState(ConfigState state)
state
- sky position stateCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.