From: jprocter Date: Fri, 18 Feb 2011 17:31:29 +0000 (+0000) Subject: fix scrolltoposition behaviour and new alignmentPanel api X-Git-Tag: Release_2_7~238 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8a1e2a4d0ad11b139bbdb27010a0c00d12973d6a;p=jalview.git fix scrolltoposition behaviour and new alignmentPanel api --- diff --git a/src/jalview/appletgui/AlignmentPanel.java b/src/jalview/appletgui/AlignmentPanel.java index c466b86..b275547 100755 --- a/src/jalview/appletgui/AlignmentPanel.java +++ b/src/jalview/appletgui/AlignmentPanel.java @@ -22,9 +22,10 @@ import java.awt.event.*; import java.util.Hashtable; import java.util.Vector; +import jalview.api.AlignmentViewPanel; import jalview.datamodel.*; -public class AlignmentPanel extends Panel implements AdjustmentListener +public class AlignmentPanel extends Panel implements AdjustmentListener, AlignmentViewPanel { public AlignViewport av; @@ -272,7 +273,7 @@ public class AlignmentPanel extends Panel implements AdjustmentListener return false; } SequenceI seq = av.alignment.getSequenceAt(seqIndex); - int[] r = results.getResults(seq, seq.getStart(), seq.getEnd()); + int[] r = results.getResults(seq, 0,av.alignment.getWidth()); if (r == null) { if (av.applet.debug) {// DEBUG @@ -890,4 +891,10 @@ public class AlignmentPanel extends Panel implements AdjustmentListener alabels.setScrollOffset(apvscroll.getValue()); } + @Override + public AlignmentI getAlignment() + { + return av.alignment; + } + }