Package uk.ac.starlink.ttools.mode
Class SwingMode
java.lang.Object
uk.ac.starlink.ttools.mode.SwingMode
- All Implemented Interfaces:
ProcessingMode
,TableConsumer
Processing mode for displaying the table in a scrollable Swing window.
- Since:
- 6 Jul 2014
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
consume
(uk.ac.starlink.table.StarTable table) Consumes a table.createConsumer
(uk.ac.starlink.task.Environment env) Creates a TableConsumer, deriving any additional required configuration from a given environment.uk.ac.starlink.task.Parameter<?>[]
Returns a list of any parameters which are associated with this mode.Returns a textual description of this processing mode.
-
Constructor Details
-
SwingMode
public SwingMode()
-
-
Method Details
-
createConsumer
Description copied from interface:ProcessingMode
Creates a TableConsumer, deriving any additional required configuration from a given environment.- Specified by:
createConsumer
in interfaceProcessingMode
- Parameters:
env
- execution environment
-
getAssociatedParameters
public uk.ac.starlink.task.Parameter<?>[] getAssociatedParameters()Description copied from interface:ProcessingMode
Returns a list of any parameters which are associated with this mode.- Specified by:
getAssociatedParameters
in interfaceProcessingMode
- Returns:
- parameter list
-
getDescription
Description copied from interface:ProcessingMode
Returns a textual description of this processing mode. This will be included in the user document so should be in XML.- Specified by:
getDescription
in interfaceProcessingMode
- Returns:
- textual description of this mode
-
consume
Description copied from interface:TableConsumer
Consumes a table.- Specified by:
consume
in interfaceTableConsumer
- Parameters:
table
- table to consume- Throws:
IOException
-