JAL-2794 Added getter for AlignmentViewport to TreeBuilder
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 8 Nov 2017 17:43:44 +0000 (17:43 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 8 Nov 2017 17:43:44 +0000 (17:43 +0000)
src/jalview/analysis/TreeBuilder.java

index 0cd340e..c4a94eb 100644 (file)
@@ -77,6 +77,8 @@ public abstract class TreeBuilder
 
   protected SimilarityParamsI scoreParams;
 
+  private AlignmentViewport avport;
+
   private AlignmentView seqStrings; // redundant? (see seqData)
 
   /**
@@ -90,6 +92,7 @@ public abstract class TreeBuilder
           SimilarityParamsI scoreParameters)
   {
     int start, end;
+    avport = av;
     boolean selview = av.getSelectionGroup() != null
             && av.getSelectionGroup().getSize() > 1;
     seqStrings = av.getAlignmentView(selview);
@@ -492,11 +495,6 @@ public abstract class TreeBuilder
     return distances;
   }
 
-  public AlignmentView getSeqData()
-  {
-    return seqData;
-  }
-
   public ScoreModelI getScoreModel()
   {
     return scoreModel;
@@ -507,4 +505,9 @@ public abstract class TreeBuilder
     return scoreParams;
   }
 
+  public AlignmentViewport getAvport()
+  {
+    return avport;
+  }
+
 }