X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fappletgui%2FAlignViewport.java;h=9f6448d513ceb2a995cff47383a2cbc2b265b609;hb=2ad64bdec4782e3fbfa3b5867a1aa7d1571629fa;hp=cd6515e403cafa5af942d20afebc990164f45986;hpb=27156beed73b8e97298a62ffe67691b6b683ec68;p=jalview.git diff --git a/src/jalview/appletgui/AlignViewport.java b/src/jalview/appletgui/AlignViewport.java index cd6515e..9f6448d 100755 --- a/src/jalview/appletgui/AlignViewport.java +++ b/src/jalview/appletgui/AlignViewport.java @@ -56,7 +56,7 @@ public class AlignViewport boolean conservationColourSelected = false; boolean abovePIDThreshold = false; - SequenceGroup selectionGroup = new SequenceGroup(); + SequenceGroup selectionGroup; int charHeight; int charWidth; @@ -581,32 +581,6 @@ public class AlignViewport return increment; } - public int getIndex(int y) - { - int y1 = 0; - int starty = getStartSeq(); - int endy = getEndSeq(); - - for (int i = starty; i <= endy; i++) - { - if (i < alignment.getHeight() && alignment.getSequenceAt(i) != null) - { - int y2 = y1 + getCharHeight(); - - if (y >= y1 && y <= y2) - { - return i; - } - y1 = y2; - } - else - { - return -1; - } - } - return -1; - } - public ColumnSelection getColumnSelection() { return colSel;