JAL-1683 replace year/version strings with tokens in source
[jalview.git] / src / jalview / gui / AppJmolBinding.java
index a64072e..3a376b8 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
  * 
  * This file is part of Jalview.
  * 
@@ -53,13 +53,13 @@ public class AppJmolBinding extends JalviewJmolBinding
   public FeatureRenderer getFeatureRenderer(
           AlignmentViewPanel alignment)
   {
-    AlignmentPanel ap = (alignment == null) ? appJmolWindow.ap
+    AlignmentPanel ap = (alignment == null) ? appJmolWindow.getAlignmentPanel()
             : (AlignmentPanel) alignment;
-    if (ap.av.showSequenceFeatures)
+    if (ap.av.isShowSequenceFeatures())
     {
       if (fr == null)
       {
-        fr = ap.cloneFeatureRenderer();
+        fr = (jalview.gui.FeatureRenderer) ap.cloneFeatureRenderer();
       }
       else
       {
@@ -132,7 +132,7 @@ public class AppJmolBinding extends JalviewJmolBinding
     }
     if (!isLoadingFromArchive())
     {
-      colourBySequence(ap.av.getShowSequenceFeatures(), ap);
+      colourBySequence(ap.av.isShowSequenceFeatures(), ap);
     }
   }
 
@@ -173,25 +173,6 @@ public class AppJmolBinding extends JalviewJmolBinding
     appJmolWindow.showConsole(b);
   }
 
-  /**
-   * add the given sequences to the mapping scope for the given pdb file handle
-   * 
-   * @param pdbFile
-   *          - pdbFile identifier
-   * @param seq
-   *          - set of sequences it can be mapped to
-   */
-  public void addSequenceForStructFile(String pdbFile, SequenceI[] seq)
-  {
-    for (int pe = 0; pe < getPdbCount(); pe++)
-    {
-      if (getPdbEntry(pe).getFile().equals(pdbFile))
-      {
-        addSequence(pe, seq);
-      }
-    }
-  }
-
   @Override
   protected JmolAppConsoleInterface createJmolConsole(JmolViewer viewer2,
           Container consolePanel, String buttonsToShow)