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:
caa1ed9
)
better thread safety for tooltip. apply gpl development license
author
jprocter
<Jim Procter>
Mon, 8 Jun 2009 11:10:47 +0000
(11:10 +0000)
committer
jprocter
<Jim Procter>
Mon, 8 Jun 2009 11:10:47 +0000
(11:10 +0000)
src/jalview/gui/IdPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/IdPanel.java
b/src/jalview/gui/IdPanel.java
index
8f748a8
..
f859a16
100755
(executable)
--- a/
src/jalview/gui/IdPanel.java
+++ b/
src/jalview/gui/IdPanel.java
@@
-1,6
+1,6
@@
/*
/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)
- * Copyright (C) 2008 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
+ * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@
-82,7
+82,8
@@
public class IdPanel extends JPanel implements MouseListener,
*/
public void mouseMoved(MouseEvent e)
{
*/
public void mouseMoved(MouseEvent e)
{
- int seq = Math.max(0, alignPanel.seqPanel.findSeq(e));
+ SeqPanel sp = alignPanel.seqPanel;
+ int seq = Math.max(0, sp.findSeq(e));
String tmp;
if (seq > -1 && seq < av.alignment.getHeight())
{
String tmp;
if (seq > -1 && seq < av.alignment.getHeight())
{
@@
-122,7
+123,7
@@
public class IdPanel extends JPanel implements MouseListener,
{
int sz = -tip.length();
tfeat[0] = features[i];
{
int sz = -tip.length();
tfeat[0] = features[i];
- SeqPanel.appendFeatures(tip, linkImageURL, 0, tfeat);
+ sp.appendFeatures(tip, linkImageURL, 0, tfeat,sp.seqCanvas.fr.minmax);
sz+=tip.length();
maxWidth = Math.max(maxWidth, sz);
}
sz+=tip.length();
maxWidth = Math.max(maxWidth, sz);
}