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:
29e4c1b
)
paint is now in drawComponent
author
amwaterhouse
<Andrew Waterhouse>
Wed, 6 Apr 2005 17:12:15 +0000
(17:12 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Wed, 6 Apr 2005 17:12:15 +0000
(17:12 +0000)
src/jalview/gui/AnnotationLabels.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AnnotationLabels.java
b/src/jalview/gui/AnnotationLabels.java
index
c600b82
..
9c12b89
100755
(executable)
--- a/
src/jalview/gui/AnnotationLabels.java
+++ b/
src/jalview/gui/AnnotationLabels.java
@@
-169,8
+169,12
@@
public class AnnotationLabels extends JPanel implements MouseListener, MouseMoti
Graphics2D g = (Graphics2D)g1;
\r
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
\r
\r
- FontMetrics fm = g.getFontMetrics(g.getFont());
\r
+ drawComponent(g);
\r
+ }
\r
\r
+ public void drawComponent(Graphics2D g)
\r
+ {
\r
+ FontMetrics fm = g.getFontMetrics(g.getFont());
\r
g.setColor(Color.white);
\r
g.fillRect(0,0, getWidth(), getHeight());
\r
\r