edu.upenn.gloDB.gui
Class GUITrackIO

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

public class GUITrackIO
extends java.lang.Object

Static methods used to handle Track IO.

Version:
$Id: GUITrackIO.java,v 1.1.2.9 2007/03/01 21:17:33 fisher Exp $
Notes:
Need to make it easy for users to set the initial default values for SHOW_ALL_FILES and USE_FILE_EXTENSIONS., Need to allow for user setting of valid file extensions.

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
GUITrackIO()
           
 
Method Summary
static Track loadTrack()
          Use a FileChooser to select a Track file to load.
static java.lang.String saveTrack(java.lang.String track)
          Use a FileChooser to save the given Track, 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 GUISequenceIO.

Constructor Detail

GUITrackIO

public GUITrackIO()
Method Detail

loadTrack

public static Track loadTrack()
Use a FileChooser to select a Track file to load. The file can have a FASTA, GenBank, GFF, or GloDB (binary) file format.


saveTrack

public static java.lang.String saveTrack(java.lang.String track)
Use a FileChooser to save the given Track, returning the filename. The file can have a FASTA, GenBank, GFF, or GloDB (binary) file format.




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