From 2adf13ab2579f829e708a9b0b8ec60b3126605a1 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 1 Apr 2005 16:42:25 +0000 Subject: [PATCH] testing Graphics2D --- src/jalview/gui/IdCanvas.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/IdCanvas.java b/src/jalview/gui/IdCanvas.java index ff3eb16..2aa39a7 100755 --- a/src/jalview/gui/IdCanvas.java +++ b/src/jalview/gui/IdCanvas.java @@ -44,7 +44,9 @@ public class IdCanvas extends JPanel } - public void paintComponent(Graphics gg) { + public void paintComponent(Graphics g) { + Graphics2D gg = (Graphics2D)g; + gg.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON); AlignmentI al = av.alignment; int charHeight = av.charHeight; Font italic = new Font(av.getFont().getName(), Font.ITALIC, av.getFont().getSize()); -- 1.7.10.2