JAL-3081 is/setShowAutocalculatedAbove pulled up to interface
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 15 Nov 2019 14:56:48 +0000 (14:56 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 15 Nov 2019 14:56:48 +0000 (14:56 +0000)
src/jalview/api/AlignViewportI.java
src/jalview/viewmodel/AlignmentViewport.java

index b813aab..fa0a3b0 100644 (file)
@@ -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
index 9e02ff1..8dc7bbd 100644 (file)
@@ -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;