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 JComponentReturns the panel into which the user enters additional coordinate information required for this control, if any.uk.ac.starlink.ttools.plot2.config.ConfigMapReturns 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 voidsetTable(TopcatModel tcModel) Performs implementation-specific configuration of this control for a given TopcatModel.Methods inherited from class 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:FormControlReturns the Plotter object which generates plot layers from the information provided by this control- Specified by:
getPlotterin classFormControl- Returns:
- plotter
-
getConfigKeys
protected uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] getConfigKeys()Description copied from class:FormControlReturns the keys defining the additional configuration required by this control.- Specified by:
getConfigKeysin classFormControl- Returns:
- config keys
-
getCoordPanel
Description copied from class:FormControlReturns the panel into which the user enters additional coordinate information required for this control, if any.- Specified by:
getCoordPanelin classFormControl- Returns:
- coordinate entry panel
-
getExtraCoordContents
Description copied from class:FormControlReturns 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:
getExtraCoordContentsin classFormControl- Returns:
- extra coordinate information, or null if incomplete
-
getExtraConfig
public uk.ac.starlink.ttools.plot2.config.ConfigMap getExtraConfig()Description copied from class:FormControlReturns the additional configuration entered by the user in this control.- Specified by:
getExtraConfigin classFormControl- Returns:
- extra config information
-
setTable
Description copied from class:FormControlPerforms implementation-specific configuration of this control for a given TopcatModel.- Specified by:
setTablein classFormControl- Parameters:
tcModel- new topcat model to install
-