From: amwaterhouse Date: Fri, 1 Apr 2005 16:42:25 +0000 (+0000) Subject: testing Graphics2D X-Git-Tag: Release_2_0~499 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2adf13ab2579f829e708a9b0b8ec60b3126605a1;p=jalview.git testing Graphics2D --- 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());