*/
package jalview.appletgui;
-import java.util.*;
-
-import java.awt.*;
-import java.awt.event.*;
-
-import jalview.analysis.*;
-import jalview.datamodel.*;
+import jalview.analysis.AlignSeq;
+import jalview.datamodel.Alignment;
+import jalview.datamodel.Sequence;
+import jalview.datamodel.SequenceI;
import jalview.util.MessageManager;
+import java.awt.BorderLayout;
+import java.awt.Button;
+import java.awt.Panel;
+import java.awt.ScrollPane;
+import java.awt.TextArea;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.util.Vector;
+
public class PairwiseAlignPanel extends Panel implements ActionListener
{
Vector sequences = new Vector();
totscore = totscore + scores[i][j];
textarea.append(as.getOutput());
- seq = new Sequence(as.getS1().getName(), as.getAStr1(), as.getS1()
- .getStart(), as.getS1().getEnd());
- sequences.addElement(seq);
-
- seq = new Sequence(as.getS2().getName(), as.getAStr2(), as.getS2()
- .getStart(), as.getS2().getEnd());
- sequences.addElement(seq);
+ sequences.add(as.getAlignedSeq1());
+ sequences.add(as.getAlignedSeq1());
}
}
totscore = totscore + scores[i][j];
textarea.append(as.getOutput());
- seq = new Sequence(as.getAlignedSeq1().getName(), as.getAStr1(), as
- .getAlignedSeq1().getStart(), as.getAlignedSeq1().getEnd());
- sequences.add(seq);
-
- seq = new Sequence(as.getAlignedSeq2().getName(), as.getAStr2(), as
- .getAlignedSeq2().getStart(), as.getAlignedSeq2().getEnd());
- sequences.add(seq);
+ sequences.add(as.getAlignedSeq1());
+ sequences.add(as.getAlignedSeq1());
}
}