Package uk.ac.starlink.topcat.plot2
Class SimpleFormControl
java.lang.Object
uk.ac.starlink.topcat.plot2.FormControl
uk.ac.starlink.topcat.plot2.SimpleFormControl
- All Implemented Interfaces:
Control
Form control which works with a single fixed plotter.
- Since:
- 15 Mar 2013
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleFormControl
(Configger baseConfigger, uk.ac.starlink.ttools.plot2.Plotter<?> plotter, uk.ac.starlink.ttools.plot2.data.Coord[] extraCoords) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[]
Returns the keys defining the additional configuration required by this control.protected JComponent
Returns the panel into which the user enters additional coordinate information required for this control, if any.uk.ac.starlink.ttools.plot2.config.ConfigMap
Returns the additional configuration entered by the user in this control.Returns the data and metadata for the additional coordinates entered by the user in this control.protected uk.ac.starlink.ttools.plot2.Plotter
<?> Returns the Plotter object which generates plot layers from the information provided by this controlprotected void
setTable
(TopcatModel tcModel) Performs implementation-specific configuration of this control for a given TopcatModel.Methods inherited from class uk.ac.starlink.topcat.plot2.FormControl
addActionListener, createLayer, getActionForwarder, getControlIcon, getControlLabel, getPanel, getStylePanel, removeActionListener, setTable, submitReports
-
Constructor Details
-
SimpleFormControl
public SimpleFormControl(Configger baseConfigger, uk.ac.starlink.ttools.plot2.Plotter<?> plotter, uk.ac.starlink.ttools.plot2.data.Coord[] extraCoords) Constructor.- Parameters:
baseConfigger
- provides global configuration infoplotter
- plotter for which this control provides style configextraCoords
- any coordinates which are to be solicited from the form control
-
-
Method Details
-
getPlotter
protected uk.ac.starlink.ttools.plot2.Plotter<?> getPlotter()Description copied from class:FormControl
Returns the Plotter object which generates plot layers from the information provided by this control- Specified by:
getPlotter
in classFormControl
- Returns:
- plotter
-
getConfigKeys
protected uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] getConfigKeys()Description copied from class:FormControl
Returns the keys defining the additional configuration required by this control.- Specified by:
getConfigKeys
in classFormControl
- Returns:
- config keys
-
getCoordPanel
Description copied from class:FormControl
Returns the panel into which the user enters additional coordinate information required for this control, if any.- Specified by:
getCoordPanel
in classFormControl
- Returns:
- coordinate entry panel
-
getExtraCoordContents
Description copied from class:FormControl
Returns the data and metadata for the additional coordinates entered by the user in this control. If these constitute insufficient information to generate a plot (not all required coords have been filled in), null is returned.- Specified by:
getExtraCoordContents
in classFormControl
- Returns:
- extra coordinate information, or null if incomplete
-
getExtraConfig
public uk.ac.starlink.ttools.plot2.config.ConfigMap getExtraConfig()Description copied from class:FormControl
Returns the additional configuration entered by the user in this control.- Specified by:
getExtraConfig
in classFormControl
- Returns:
- extra config information
-
setTable
Description copied from class:FormControl
Performs implementation-specific configuration of this control for a given TopcatModel.- Specified by:
setTable
in classFormControl
- Parameters:
tcModel
- new topcat model to install
-