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