public class MySaveFileListener extends Object implements ActionListener
The format to save the alignment depends on the Frame that generated the Action: from a sequence alignment a FatCat or FASTA formats are saved, and from a Jmol view an XML format is saved.
| Constructor and Description |
|---|
MySaveFileListener(AFPChain afpChain) |
MySaveFileListener(AFPChain afpChain,
MultipleAlignment msa)
Constructor to avoid checking which of the two is null before
instantiating this class.
|
MySaveFileListener(MultipleAlignment msa) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent evt) |
void |
setTextOutput(boolean text)
If true, the alignment format saved will be a text output (FASTA for
MultipleAlignments and FatCat for pairwise alignments)
|
public MySaveFileListener(AFPChain afpChain)
public MySaveFileListener(MultipleAlignment msa)
public MySaveFileListener(AFPChain afpChain, MultipleAlignment msa)
afpChain - msa - public void actionPerformed(ActionEvent evt)
actionPerformed in interface ActionListenerpublic void setTextOutput(boolean text)
text - if true the output will be text formatCopyright © 2000–2018 BioJava. All rights reserved.