From: Jim Procter Date: Fri, 23 Jan 2015 14:11:14 +0000 (+0000) Subject: JAL-969 hasHiddenRows is now an interface method X-Git-Tag: Jalview_2_9~108^2~4 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=5d0147997598b2aa770452f21caeb807df628728;p=jalview.git JAL-969 hasHiddenRows is now an interface method --- diff --git a/src/jalview/api/AlignViewportI.java b/src/jalview/api/AlignViewportI.java index 60ee8d5..2dea15e 100644 --- a/src/jalview/api/AlignViewportI.java +++ b/src/jalview/api/AlignViewportI.java @@ -352,4 +352,6 @@ public interface AlignViewportI */ int adjustForHiddenSeqs(int alignmentIndex); + boolean hasHiddenRows(); + } diff --git a/src/jalview/appletgui/AlignViewport.java b/src/jalview/appletgui/AlignViewport.java index 1767164..84a62ae 100644 --- a/src/jalview/appletgui/AlignViewport.java +++ b/src/jalview/appletgui/AlignViewport.java @@ -629,12 +629,6 @@ public class AlignViewport extends AlignmentViewport implements } } - @Override - public boolean hasHiddenColumns() - { - return hasHiddenColumns; - } - public boolean isNormaliseSequenceLogo() { return normaliseSequenceLogo; diff --git a/src/jalview/gui/AlignViewport.java b/src/jalview/gui/AlignViewport.java index a2ed7cd..1c105d0 100644 --- a/src/jalview/gui/AlignViewport.java +++ b/src/jalview/gui/AlignViewport.java @@ -991,14 +991,6 @@ public class AlignViewport extends AlignmentViewport implements shownpfeats = show; } - /** - * - * @return true if view has hidden rows - */ - public boolean hasHiddenRows() - { - return hasHiddenRows; - } /** * when set, view will scroll to show the highlighted position diff --git a/src/jalview/viewmodel/AlignmentViewport.java b/src/jalview/viewmodel/AlignmentViewport.java index 9cd9bfd..08b31fa 100644 --- a/src/jalview/viewmodel/AlignmentViewport.java +++ b/src/jalview/viewmodel/AlignmentViewport.java @@ -687,6 +687,7 @@ public abstract class AlignmentViewport implements AlignViewportI protected boolean hasHiddenRows = false; + @Override public boolean hasHiddenRows() { return hasHiddenRows;