From: gmungoc Date: Fri, 15 Nov 2019 14:56:48 +0000 (+0000) Subject: JAL-3081 is/setShowAutocalculatedAbove pulled up to interface X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=dd78fb858ae1d6b7704ddb29617029f429f07e9b;p=jalview.git JAL-3081 is/setShowAutocalculatedAbove pulled up to interface --- diff --git a/src/jalview/api/AlignViewportI.java b/src/jalview/api/AlignViewportI.java index b813aab..fa0a3b0 100644 --- a/src/jalview/api/AlignViewportI.java +++ b/src/jalview/api/AlignViewportI.java @@ -521,6 +521,22 @@ public interface AlignViewportI extends ViewStyleI void addSequenceGroup(SequenceGroup sequenceGroup); /** + * Returns true if autocalculated annotations are shown above other + * annotations, false if below + * + * @return + */ + boolean isShowAutocalculatedAbove(); + + /** + * Sets the flag for whether autocalculated annotations are shown above (true) + * or below (false) other annotations + * + * @param showAutocalculatedAbove + */ + void setShowAutocalculatedAbove(boolean showAutocalculatedAbove); + + /** * Sets the sort order to apply to annotations * * @param sortAnnotationsBy diff --git a/src/jalview/viewmodel/AlignmentViewport.java b/src/jalview/viewmodel/AlignmentViewport.java index 9e02ff1..8dc7bbd 100644 --- a/src/jalview/viewmodel/AlignmentViewport.java +++ b/src/jalview/viewmodel/AlignmentViewport.java @@ -2683,11 +2683,13 @@ public abstract class AlignmentViewport this.sortAnnotationsBy = sortAnnotationsBy; } + @Override public boolean isShowAutocalculatedAbove() { return showAutocalculatedAbove; } + @Override public void setShowAutocalculatedAbove(boolean showAutocalculatedAbove) { this.showAutocalculatedAbove = showAutocalculatedAbove;