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 (from parent 1:
6bb9269
)
Dont clear graphics g before drawing the image
author
amwaterhouse
<Andrew Waterhouse>
Mon, 29 Jan 2007 17:42:02 +0000
(17:42 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Mon, 29 Jan 2007 17:42:02 +0000
(17:42 +0000)
src/jalview/appletgui/AnnotationPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/appletgui/AnnotationPanel.java
b/src/jalview/appletgui/AnnotationPanel.java
index
d4024ba
..
01f2c23
100755
(executable)
--- a/
src/jalview/appletgui/AnnotationPanel.java
+++ b/
src/jalview/appletgui/AnnotationPanel.java
@@
-196,13
+196,13
@@
public class AnnotationPanel
if(av.hasHiddenColumns)
\r
res = av.getColumnSelection().adjustForHiddenColumns(res);
\r
\r
if(av.hasHiddenColumns)
\r
res = av.getColumnSelection().adjustForHiddenColumns(res);
\r
\r
- if (row > -1 && res < aa[row].annotations.length && aa[row].annotations[res] != null)
\r
- {
\r
- StringBuffer text = new StringBuffer("Sequence position " + (res + 1) +
\r
- " " +
\r
- aa[row].annotations[res].description);
\r
- ap.alignFrame.statusBar.setText(text.toString());
\r
- }
\r
+ if (row > -1 && res < aa[row].annotations.length && aa[row].annotations[res] != null)
\r
+ {
\r
+ StringBuffer text = new StringBuffer("Sequence position " + (res + 1));
\r
+ if (aa[row].annotations[res].description != null)
\r
+ text.append(" " + aa[row].annotations[res].description);
\r
+ ap.alignFrame.statusBar.setText(text.toString());
\r
+ }
\r
}
\r
\r
public void update(Graphics g)
\r
}
\r
\r
public void update(Graphics g)
\r
@@
-232,8
+232,6
@@
public class AnnotationPanel
}
\r
\r
drawComponent(gg, av.startRes, av.endRes + 1);
\r
}
\r
\r
drawComponent(gg, av.startRes, av.endRes + 1);
\r
- g.setColor(Color.white);
\r
- g.fillRect(0, 0, getSize().width, getSize().height);
\r
g.drawImage(image, 0, 0, this);
\r
}
\r
\r
g.drawImage(image, 0, 0, this);
\r
}
\r
\r