util
Class AlignmentExporter

java.lang.Object
  extended by util.AlignmentExporter

public class AlignmentExporter
extends java.lang.Object


Constructor Summary
AlignmentExporter()
           
 
Method Summary
static void exportFasta(AlignFrame alignFrame, AlignViewProps viewProps, java.awt.event.ActionEvent evt, boolean saveSelection)
          This method manages the Fasta File export of current selection.
static void exportMethodFile(AlignFrame alignFrame, java.awt.event.ActionEvent evt, java.lang.String method)
          Create a copy of the original input file on a new location
static void exportPNGFile(AlignFrame alignFrame, java.awt.event.ActionEvent evt)
          This method manages the PNG File export.
static void saveFasta(AlignViewProps viewProps, java.io.File selectedFile, boolean saveSelection)
           
static void saveFile(java.lang.String inputFile, java.io.File outFile)
          Sets the name-to-clusterIndex HashMap.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlignmentExporter

public AlignmentExporter()
Method Detail

exportFasta

public static void exportFasta(AlignFrame alignFrame,
                               AlignViewProps viewProps,
                               java.awt.event.ActionEvent evt,
                               boolean saveSelection)
This method manages the Fasta File export of current selection.

Parameters:
evt -

saveFasta

public static void saveFasta(AlignViewProps viewProps,
                             java.io.File selectedFile,
                             boolean saveSelection)
                      throws java.io.IOException
Throws:
java.io.IOException

exportPNGFile

public static void exportPNGFile(AlignFrame alignFrame,
                                 java.awt.event.ActionEvent evt)
This method manages the PNG File export.

Parameters:
evt -

exportMethodFile

public static void exportMethodFile(AlignFrame alignFrame,
                                    java.awt.event.ActionEvent evt,
                                    java.lang.String method)
Create a copy of the original input file on a new location


saveFile

public static void saveFile(java.lang.String inputFile,
                            java.io.File outFile)
                     throws java.io.FileNotFoundException,
                            java.io.IOException
Sets the name-to-clusterIndex HashMap.

Parameters:
name2ClusterIndex - HashMap
Throws:
java.io.FileNotFoundException
java.io.IOException