revised sequence/structure binding so one structure associated with x-seuqenceI's
authorjprocter <Jim Procter>
Fri, 27 Aug 2010 11:34:50 +0000 (11:34 +0000)
committerjprocter <Jim Procter>
Fri, 27 Aug 2010 11:34:50 +0000 (11:34 +0000)
src/jalview/appletgui/AppletJmol.java
src/jalview/appletgui/AppletJmolBinding.java
src/jalview/appletgui/ExtJmol.java

index 8606e22..3707cfa 100644 (file)
@@ -104,7 +104,7 @@ public class AppletJmol extends EmbmenuFrame implements
   {
     this.ap = ap;
     jmb = new AppletJmolBinding(this, new PDBEntry[]
-    { pdbentry }, seq, chains, protocol);
+    { pdbentry }, new SequenceI[][]{seq}, new String[][]{ chains }, protocol);
     jmb.setColourBySequence(true);
     if (pdbentry.getId() == null || pdbentry.getId().length() < 1)
     {
index 9299af2..3afa805 100644 (file)
@@ -18,8 +18,8 @@ class AppletJmolBinding extends jalview.ext.jmol.JalviewJmolBinding
    */
   private AppletJmol appletJmolBinding;
 
-  public AppletJmolBinding(AppletJmol appletJmol, PDBEntry[] pdbentry, SequenceI[] seq,
-          String[] chains, String protocol)
+  public AppletJmolBinding(AppletJmol appletJmol, PDBEntry[] pdbentry, SequenceI[][] seq,
+          String[][] chains, String protocol)
   {
     super(pdbentry, seq, chains, protocol);
     appletJmolBinding = appletJmol;
index 8e42f2a..53c2f1c 100644 (file)
@@ -22,14 +22,14 @@ public class ExtJmol extends JalviewJmolBinding
 
   private AlignmentPanel ap;
 
-  protected ExtJmol(jalview.appletgui.AlignFrame alframe, PDBEntry[] pdbentry, SequenceI[] seq, String[] chains,
+  protected ExtJmol(jalview.appletgui.AlignFrame alframe, PDBEntry[] pdbentry, SequenceI[][] seq, String[][] chains,
           String protocol)
   {
     super(pdbentry, seq, chains, protocol);
   }
 
   public ExtJmol(JmolViewer viewer, AlignmentPanel alignPanel,
-          SequenceI[] seqs)
+          SequenceI[][] seqs)
   {
     super(viewer);
     ap = alignPanel;