From 5d0147997598b2aa770452f21caeb807df628728 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 23 Jan 2015 14:11:14 +0000 Subject: [PATCH] JAL-969 hasHiddenRows is now an interface method --- src/jalview/api/AlignViewportI.java | 2 ++ src/jalview/appletgui/AlignViewport.java | 6 ------ src/jalview/gui/AlignViewport.java | 8 -------- src/jalview/viewmodel/AlignmentViewport.java | 1 + 4 files changed, 3 insertions(+), 14 deletions(-) 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; -- 1.7.10.2