/*
* Jalview - A Sequence Alignment Editor and Viewer
- * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
+ * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
import java.util.*;
+import java.awt.*;
import java.awt.event.*;
import jalview.analysis.*;
import jalview.datamodel.*;
-import java.awt.*;
public class PairwiseAlignPanel
extends Panel implements ActionListener
float scores[][] = new float[seqs.length][seqs.length];
double totscore = 0;
int count = ap.av.getSelectionGroup().getSize();
- String type=(ap.av.alignment.isNucleotide()) ? AlignSeq.DNA : AlignSeq.PEP;
+ String type = (ap.av.alignment.isNucleotide()) ? AlignSeq.DNA :
+ AlignSeq.PEP;
Sequence seq;
for (int i = 1; i < count; i++)
System.out.println("\n");
}
}
+
public void actionPerformed(ActionEvent evt)
{
- if(evt.getSource()==viewInEditorButton)
+ if (evt.getSource() == viewInEditorButton)
+ {
viewInEditorButton_actionPerformed();
+ }
}
protected void viewInEditorButton_actionPerformed()
}
new AlignFrame(new Alignment(seq),
- ap.av.applet,
- "Pairwise Aligned Sequences",
- false);
+ ap.av.applet,
+ "Pairwise Aligned Sequences",
+ false);
}
+
protected ScrollPane scrollPane = new ScrollPane();
protected TextArea textarea = new TextArea();
protected Button viewInEditorButton = new Button();
Panel jPanel1 = new Panel();
BorderLayout borderLayout1 = new BorderLayout();
- private void jbInit() throws Exception {
- this.setLayout(borderLayout1);
- textarea.setFont(new java.awt.Font("Monospaced", 0, 12));
- textarea.setText("");
- viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12));
- viewInEditorButton.setLabel("View in alignment editor");
- viewInEditorButton.addActionListener(this);
- this.add(scrollPane, BorderLayout.CENTER);
- scrollPane.add(textarea);
- this.add(jPanel1, BorderLayout.SOUTH);
- jPanel1.add(viewInEditorButton, null);
+ private void jbInit()
+ throws Exception
+ {
+ this.setLayout(borderLayout1);
+ textarea.setFont(new java.awt.Font("Monospaced", 0, 12));
+ textarea.setText("");
+ viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12));
+ viewInEditorButton.setLabel("View in alignment editor");
+ viewInEditorButton.addActionListener(this);
+ this.add(scrollPane, BorderLayout.CENTER);
+ scrollPane.add(textarea);
+ this.add(jPanel1, BorderLayout.SOUTH);
+ jPanel1.add(viewInEditorButton, null);
}
}