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:
7fa59a1
)
testing Graphics2D
author
amwaterhouse
<Andrew Waterhouse>
Fri, 1 Apr 2005 16:42:25 +0000
(16:42 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Fri, 1 Apr 2005 16:42:25 +0000
(16:42 +0000)
src/jalview/gui/IdCanvas.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/IdCanvas.java
b/src/jalview/gui/IdCanvas.java
index
ff3eb16
..
2aa39a7
100755
(executable)
--- a/
src/jalview/gui/IdCanvas.java
+++ b/
src/jalview/gui/IdCanvas.java
@@
-44,7
+44,9
@@
public class IdCanvas extends JPanel
\r
}
\r
\r
- public void paintComponent(Graphics gg) {
\r
+ public void paintComponent(Graphics g) {
\r
+ Graphics2D gg = (Graphics2D)g;
\r
+ gg.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
\r
AlignmentI al = av.alignment;
\r
int charHeight = av.charHeight;
\r
Font italic = new Font(av.getFont().getName(), Font.ITALIC, av.getFont().getSize());
\r