From 0664dcf0200c56c708e7e5972d2e0b1a4c4211c2 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 8 Nov 2019 09:35:01 +0000 Subject: [PATCH] JAL-3081 promote setSortAnnotationsBy() to api method --- src/jalview/api/AlignViewportI.java | 8 ++++++++ src/jalview/viewmodel/AlignmentViewport.java | 1 + 2 files changed, 9 insertions(+) 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) { -- 1.7.10.2