From: gmungoc Date: Fri, 8 Nov 2019 09:35:01 +0000 (+0000) Subject: JAL-3081 promote setSortAnnotationsBy() to api method X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0664dcf0200c56c708e7e5972d2e0b1a4c4211c2;p=jalview.git JAL-3081 promote setSortAnnotationsBy() to api method --- diff --git a/src/jalview/api/AlignViewportI.java b/src/jalview/api/AlignViewportI.java index 389d9cf..b813aab 100644 --- a/src/jalview/api/AlignViewportI.java +++ b/src/jalview/api/AlignViewportI.java @@ -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); } diff --git a/src/jalview/viewmodel/AlignmentViewport.java b/src/jalview/viewmodel/AlignmentViewport.java index 148ea16..9e02ff1 100644 --- a/src/jalview/viewmodel/AlignmentViewport.java +++ b/src/jalview/viewmodel/AlignmentViewport.java @@ -2676,6 +2676,7 @@ public abstract class AlignmentViewport return sortAnnotationsBy; } + @Override public void setSortAnnotationsBy( SequenceAnnotationOrder sortAnnotationsBy) {