git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ceb4b09
)
getIndex replaced by findSeq in Seqpanel
author
amwaterhouse
<Andrew Waterhouse>
Fri, 28 Jul 2006 16:03:38 +0000
(16:03 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Fri, 28 Jul 2006 16:03:38 +0000
(16:03 +0000)
src/jalview/appletgui/AlignViewport.java
patch
|
blob
|
history
diff --git
a/src/jalview/appletgui/AlignViewport.java
b/src/jalview/appletgui/AlignViewport.java
index
1bc1b51
..
9f6448d
100755
(executable)
--- a/
src/jalview/appletgui/AlignViewport.java
+++ b/
src/jalview/appletgui/AlignViewport.java
@@
-581,32
+581,6
@@
public class AlignViewport
return increment;
\r
}
\r
\r
return increment;
\r
}
\r
\r
- public int getIndex(int y)
\r
- {
\r
- int y1 = 0;
\r
- int starty = getStartSeq();
\r
- int endy = getEndSeq();
\r
-
\r
- for (int i = starty; i <= endy; i++)
\r
- {
\r
- if (i < alignment.getHeight() && alignment.getSequenceAt(i) != null)
\r
- {
\r
- int y2 = y1 + getCharHeight();
\r
-
\r
- if (y >= y1 && y <= y2)
\r
- {
\r
- return i;
\r
- }
\r
- y1 = y2;
\r
- }
\r
- else
\r
- {
\r
- return -1;
\r
- }
\r
- }
\r
- return -1;
\r
- }
\r
-
\r
public ColumnSelection getColumnSelection()
\r
{
\r
return colSel;
\r
public ColumnSelection getColumnSelection()
\r
{
\r
return colSel;
\r