From: amwaterhouse Date: Thu, 12 Oct 2006 13:21:41 +0000 (+0000) Subject: Local adjustForhiddenSeqs routine X-Git-Tag: Release_2_2~280 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=da144cfa9b7997a6e8dd04ef10d55bcea3b02c71;p=jalview.git Local adjustForhiddenSeqs routine --- diff --git a/src/jalview/appletgui/IdCanvas.java b/src/jalview/appletgui/IdCanvas.java index 013c7a1..dd057a3 100755 --- a/src/jalview/appletgui/IdCanvas.java +++ b/src/jalview/appletgui/IdCanvas.java @@ -295,12 +295,32 @@ public class IdCanvas void drawMarker(int i, int starty, int yoffset) { - int hiddenIndex = av.adjustForHiddenSeqs(i); - int lastIndex = av.adjustForHiddenSeqs(i - 1); - int nextIndex = av.adjustForHiddenSeqs(i + 1); + SequenceI [] hseqs = av.alignment.getHiddenSequences().hiddenSequences; + //Use this method here instead of calling hiddenSeq adjust + //3 times. + int hSize = hseqs.length; + + int hiddenIndex = i; + int lastIndex = i - 1; + int nextIndex = i + 1; boolean below = (hiddenIndex > lastIndex + 1); - boolean above = (nextIndex>hiddenIndex+1); + boolean above = (nextIndex > hiddenIndex + 1); + + + + for(int j=0; j lastIndex + 1); - boolean above = (nextIndex>hiddenIndex+1); + boolean above = (nextIndex > hiddenIndex+1); + gg.setColor(Color.blue); if(below)