JAL-3081 promote setSortAnnotationsBy() to api method
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 8 Nov 2019 09:35:01 +0000 (09:35 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 8 Nov 2019 09:35:01 +0000 (09:35 +0000)
src/jalview/api/AlignViewportI.java
src/jalview/viewmodel/AlignmentViewport.java

index 389d9cf..b813aab 100644 (file)
@@ -20,6 +20,7 @@
  */
 package jalview.api;
 
+import jalview.analysis.AnnotationSorter.SequenceAnnotationOrder;
 import jalview.analysis.Conservation;
 import jalview.analysis.TreeModel;
 import jalview.datamodel.AlignmentAnnotation;
@@ -518,4 +519,11 @@ public interface AlignViewportI extends ViewStyleI
    *          - a group defined on sequences in the alignment held by the view
    */
   void addSequenceGroup(SequenceGroup sequenceGroup);
+
+  /**
+   * Sets the sort order to apply to annotations
+   * 
+   * @param sortAnnotationsBy
+   */
+  void setSortAnnotationsBy(SequenceAnnotationOrder sortAnnotationsBy);
 }
index 148ea16..9e02ff1 100644 (file)
@@ -2676,6 +2676,7 @@ public abstract class AlignmentViewport
     return sortAnnotationsBy;
   }
 
+  @Override
   public void setSortAnnotationsBy(
           SequenceAnnotationOrder sortAnnotationsBy)
   {