edu.upenn.gloDB.gui
Class GUISequenceIO

java.lang.Object
  extended by edu.upenn.gloDB.gui.GUISequenceIO

public class GUISequenceIO
extends java.lang.Object

Static methods used throughout the GUI.

Version:
$Id: GUISequenceIO.java,v 1.6.2.11 2007/03/01 21:17:33 fisher Exp $

Field Summary
(package private) static javax.swing.filechooser.FileFilter filter
          Define 'filter' as a static global variable so that it persists across instances of the fileChoosers and thus will 'remember' what the user last used.
 
Constructor Summary
GUISequenceIO()
           
 
Method Summary
static java.util.Set loadSequence()
          Use a FileChooser to select a Sequence file to load.
static Sequence newSequence()
           
static java.lang.String saveSequence(java.lang.String sequence)
          Use a FileChooser to save the given Sequence, returning the filename.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filter

static javax.swing.filechooser.FileFilter filter
Define 'filter' as a static global variable so that it persists across instances of the fileChoosers and thus will 'remember' what the user last used. This isn't in GUIUtils because the user might have a different 'default' here than in GUIFeatureIO.

Constructor Detail

GUISequenceIO

public GUISequenceIO()
Method Detail

newSequence

public static Sequence newSequence()

loadSequence

public static java.util.Set loadSequence()
Use a FileChooser to select a Sequence file to load. The file can have a FASTA, GenBank, or GloDB (binary) file format.


saveSequence

public static java.lang.String saveSequence(java.lang.String sequence)
Use a FileChooser to save the given Sequence, returning the filename. The output file can have a FASTA, GenBank, or GloDB (binary) file format.




Copyright 2012 Stephen Fisher and Junhyong Kim, University of Pennsylvania. All Rights Reserved.