JAL-3148 pull up getSequenceRenderer to AlignmentViewPanel
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 5 Nov 2018 14:32:07 +0000 (14:32 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 5 Nov 2018 14:32:07 +0000 (14:32 +0000)
src/jalview/api/AlignmentViewPanel.java
src/jalview/api/SequenceRendererI.java [moved from src/jalview/api/SequenceRenderer.java with 96% similarity]
src/jalview/appletgui/AlignmentPanel.java
src/jalview/gui/AlignmentPanel.java

index 0b1ca21..676c943 100644 (file)
@@ -57,6 +57,8 @@ public interface AlignmentViewPanel extends OOMHandlerI
   FeatureRenderer getFeatureRenderer();
 
   FeatureRenderer cloneFeatureRenderer();
+  
+  SequenceRendererI getSequenceRenderer();
 
   /**
    * 
similarity index 96%
rename from src/jalview/api/SequenceRenderer.java
rename to src/jalview/api/SequenceRendererI.java
index 54f7fb6..66fcae0 100644 (file)
@@ -25,7 +25,7 @@ import jalview.renderer.seqfeatures.FeatureColourFinder;
 
 import java.awt.Color;
 
-public interface SequenceRenderer
+public interface SequenceRendererI
 {
 
   Color getResidueColour(SequenceI seq, int position,
index 83d8ade..f881a1c 100644 (file)
@@ -23,6 +23,7 @@ package jalview.appletgui;
 import jalview.analysis.AnnotationSorter;
 import jalview.api.AlignViewportI;
 import jalview.api.AlignmentViewPanel;
+import jalview.api.SequenceRendererI;
 import jalview.bin.JalviewLite;
 import jalview.datamodel.AlignmentI;
 import jalview.datamodel.SearchResultsI;
@@ -177,7 +178,7 @@ public class AlignmentPanel extends Panel
     return av;
   }
 
-  public SequenceRenderer getSequenceRenderer()
+  public SequenceRendererI getSequenceRenderer()
   {
     return seqPanel.seqCanvas.sr;
   }
index 60ef480..64e0113 100644 (file)
@@ -23,6 +23,7 @@ package jalview.gui;
 import jalview.analysis.AnnotationSorter;
 import jalview.api.AlignViewportI;
 import jalview.api.AlignmentViewPanel;
+import jalview.api.SequenceRendererI;
 import jalview.bin.Cache;
 import jalview.datamodel.AlignmentI;
 import jalview.datamodel.HiddenColumns;
@@ -1785,4 +1786,10 @@ public class AlignmentPanel extends GAlignmentPanel implements
   {
     return calculationDialog;
   }
+
+  @Override
+  public SequenceRendererI getSequenceRenderer() 
+  {
+       return new SequenceRenderer(av);
+  }
 }