uk.ac.starlink.ttools.mode
Class SwingMode

java.lang.Object
  extended by uk.ac.starlink.ttools.mode.SwingMode
All Implemented Interfaces:
ProcessingMode, TableConsumer

public class SwingMode
extends Object
implements ProcessingMode, TableConsumer

Processing mode for displaying the table in a scrollable Swing window.

Since:
6 Jul 2014
Author:
Mark Taylor

Constructor Summary
SwingMode()
           
 
Method Summary
 void consume(StarTable table)
          Consumes a table.
 TableConsumer createConsumer(Environment env)
          Creates a TableConsumer, deriving any additional required configuration from a given environment.
 Parameter[] getAssociatedParameters()
          Returns a list of any parameters which are associated with this mode.
 String getDescription()
          Returns a textual description of this processing mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingMode

public SwingMode()
Method Detail

createConsumer

public TableConsumer createConsumer(Environment env)
Description copied from interface: ProcessingMode
Creates a TableConsumer, deriving any additional required configuration from a given environment.

Specified by:
createConsumer in interface ProcessingMode
Parameters:
env - execution environment

getAssociatedParameters

public Parameter[] getAssociatedParameters()
Description copied from interface: ProcessingMode
Returns a list of any parameters which are associated with this mode.

Specified by:
getAssociatedParameters in interface ProcessingMode
Returns:
parameter list

getDescription

public String 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 interface ProcessingMode
Returns:
textual description of this mode

consume

public void consume(StarTable table)
             throws IOException
Description copied from interface: TableConsumer
Consumes a table.

Specified by:
consume in interface TableConsumer
Parameters:
table - table to consume
Throws:
IOException


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.