JAL-3148 SequenceRenderer interface renamed SequenceRendererI
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 5 Nov 2018 14:47:03 +0000 (14:47 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 5 Nov 2018 14:47:03 +0000 (14:47 +0000)
src/jalview/appletgui/SequenceRenderer.java
src/jalview/ext/jmol/JmolCommands.java
src/jalview/ext/rbvi/chimera/ChimeraCommands.java
src/jalview/ext/varna/VarnaCommands.java
src/jalview/javascript/MouseOverStructureListener.java

index e55f2a5..907d29e 100755 (executable)
@@ -30,7 +30,7 @@ import java.awt.Font;
 import java.awt.FontMetrics;
 import java.awt.Graphics;
 
-public class SequenceRenderer implements jalview.api.SequenceRenderer
+public class SequenceRenderer implements jalview.api.SequenceRendererI
 {
   final static int CHAR_TO_UPPER = 'A' - 'a';
 
index 8fb0de6..b2aeee4 100644 (file)
@@ -23,7 +23,7 @@ package jalview.ext.jmol;
 import jalview.api.AlignViewportI;
 import jalview.api.AlignmentViewPanel;
 import jalview.api.FeatureRenderer;
-import jalview.api.SequenceRenderer;
+import jalview.api.SequenceRendererI;
 import jalview.datamodel.AlignmentI;
 import jalview.datamodel.HiddenColumns;
 import jalview.datamodel.SequenceI;
@@ -55,7 +55,7 @@ public class JmolCommands
    */
   public static StructureMappingcommandSet[] getColourBySequenceCommand(
           StructureSelectionManager ssm, String[] files,
-          SequenceI[][] sequence, SequenceRenderer sr,
+          SequenceI[][] sequence, SequenceRendererI sr,
           AlignmentViewPanel viewPanel)
   {
     FeatureRenderer fr = viewPanel.getFeatureRenderer();
@@ -69,8 +69,7 @@ public class JmolCommands
     {
       StructureMapping[] mapping = ssm.getMapping(files[pdbfnum]);
       StringBuffer command = new StringBuffer();
-      StructureMappingcommandSet smc;
-      ArrayList<String> str = new ArrayList<String>();
+      List<String> str = new ArrayList<>();
 
       if (mapping == null || mapping.length < 1)
       {
index dad8511..f952bff 100644 (file)
@@ -23,7 +23,7 @@ package jalview.ext.rbvi.chimera;
 import jalview.api.AlignViewportI;
 import jalview.api.AlignmentViewPanel;
 import jalview.api.FeatureRenderer;
-import jalview.api.SequenceRenderer;
+import jalview.api.SequenceRendererI;
 import jalview.datamodel.AlignmentI;
 import jalview.datamodel.HiddenColumns;
 import jalview.datamodel.SequenceFeature;
@@ -66,7 +66,7 @@ public class ChimeraCommands
    */
   public static StructureMappingcommandSet[] getColourBySequenceCommand(
           StructureSelectionManager ssm, String[] files,
-          SequenceI[][] sequence, SequenceRenderer sr,
+          SequenceI[][] sequence, SequenceRendererI sr,
           AlignmentViewPanel viewPanel)
   {
     Map<Object, AtomSpecModel> colourMap = buildColoursMap(ssm, files,
@@ -188,7 +188,7 @@ public class ChimeraCommands
    */
   protected static Map<Object, AtomSpecModel> buildColoursMap(
           StructureSelectionManager ssm, String[] files,
-          SequenceI[][] sequence, SequenceRenderer sr,
+          SequenceI[][] sequence, SequenceRendererI sr,
           AlignmentViewPanel viewPanel)
   {
     FeatureRenderer fr = viewPanel.getFeatureRenderer();
index 4dd0648..e0524e8 100644 (file)
@@ -20,7 +20,7 @@
  */
 package jalview.ext.varna;
 
-import jalview.api.SequenceRenderer;
+import jalview.api.SequenceRendererI;
 import jalview.datamodel.AlignmentI;
 import jalview.datamodel.SequenceI;
 import jalview.renderer.seqfeatures.FeatureColourFinder;
@@ -47,7 +47,7 @@ public class VarnaCommands
    */
   public static String[] getColourBySequenceCommand(
           StructureSelectionManager ssm, String[] files,
-          SequenceI[][] sequence, SequenceRenderer sr,
+          SequenceI[][] sequence, SequenceRendererI sr,
           FeatureColourFinder finder, AlignmentI alignment)
   {
     ArrayList<String> str = new ArrayList<String>();
index 6071933..fd2a4d5 100644 (file)
@@ -22,7 +22,7 @@ package jalview.javascript;
 
 import jalview.api.AlignmentViewPanel;
 import jalview.api.FeatureRenderer;
-import jalview.api.SequenceRenderer;
+import jalview.api.SequenceRendererI;
 import jalview.appletgui.AlignFrame;
 import jalview.bin.JalviewLite;
 import jalview.datamodel.SequenceI;
@@ -203,7 +203,7 @@ public class MouseOverStructureListener extends JSFunctionExec
         // }
       }
 
-      SequenceRenderer sr = ((jalview.appletgui.AlignmentPanel) source)
+      SequenceRendererI sr = ((jalview.appletgui.AlignmentPanel) source)
               .getSequenceRenderer();
       FeatureRenderer fr = ((jalview.appletgui.AlignmentPanel) source).av
               .isShowSequenceFeatures()