From: amwaterhouse Date: Wed, 1 Dec 2004 17:12:38 +0000 (+0000) Subject: search function added X-Git-Tag: Release_2_0~884 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2e9af306a6dc27274ea5eb047afd583b2caf2e69;p=jalview.git search function added --- diff --git a/src/jalview/gui/AlignmentPanel.java b/src/jalview/gui/AlignmentPanel.java index 2266462..4f56474 100755 --- a/src/jalview/gui/AlignmentPanel.java +++ b/src/jalview/gui/AlignmentPanel.java @@ -18,8 +18,6 @@ public class AlignmentPanel extends GAlignmentPanel implements AdjustmentListene ScalePanel scalePanel; ScorePanel scorePanel; - public boolean groupEdit = false; - public AlignmentPanel(AlignFrame af, AlignViewport av) { alignFrame = af; @@ -38,7 +36,6 @@ public class AlignmentPanel extends GAlignmentPanel implements AdjustmentListene hscroll.addAdjustmentListener(this); vscroll.addAdjustmentListener(this); - selectAll(false); addComponentListener(new ComponentAdapter() { @@ -47,27 +44,19 @@ public class AlignmentPanel extends GAlignmentPanel implements AdjustmentListene RefreshPanels(); } }); - } - public int countSelected() - { - return av.getSelection().size(); - } + public void highlightSearchResults(int [] results) + { + seqPanel.seqCanvas.highlightSearchResults( results ); + + // do we need to scroll the panel? + if(av.getStartSeq()>results[0] || av.getEndSeq()results[1] || av.getEndRes()