From e168a1db5ad249f781a2297036aecdd9b2bfd94b Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 17 Jan 2005 18:08:25 +0000 Subject: [PATCH] Clustal align DNA spinner added --- src/jalview/gui/AlignFrame.java | 111 +++++++++++++++++++++++++++++++++------ 1 file changed, 95 insertions(+), 16 deletions(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index a41491a..500bf84 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -802,28 +802,107 @@ public class AlignFrame extends GAlignFrame public void clustalAlignMenuItem_actionPerformed(ActionEvent e) { - // JBPNote - // Should check to see if the server settings are valid - // Need visual-delay indication here. - jalview.ws.Jemboss jemboss = new jalview.ws.Jemboss(); + JInternalFrame frame = new JInternalFrame(); + ClustalThread ct = new ClustalThread(frame); + Thread t = new Thread(ct); + t.start(); + frame.setContentPane(ct); + Desktop.addInternalFrame(frame, title, 300, 80); - Vector sv = viewport.getAlignment().getSequences(); - SequenceI[] seqs = new SequenceI[sv.size()]; + } - int i=0; - do + class ClustalThread extends JPanel implements Runnable + { + Image [] image; + int imageIndex = 0; + boolean webServiceRunning = false; + JInternalFrame frame; + public ClustalThread(JInternalFrame frame) { - seqs[i] = (SequenceI) sv.elementAt(i); - } while (++i