From: amwaterhouse Date: Thu, 18 Nov 2004 18:40:41 +0000 (+0000) Subject: try out graphics 2d X-Git-Tag: Release_2_0~913 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b1081eceb6369009b51c960cb2c77c5b49546cc3;p=jalview.git try out graphics 2d --- diff --git a/src/jalview/gui/IdCanvas.java b/src/jalview/gui/IdCanvas.java index 67fabf7..c1df12d 100755 --- a/src/jalview/gui/IdCanvas.java +++ b/src/jalview/gui/IdCanvas.java @@ -1,13 +1,15 @@ package jalview.gui; import java.awt.*; +import java.awt.Graphics2D.*; + import javax.swing.*; import jalview.datamodel.*; import jalview.analysis.*; public class IdCanvas extends JPanel { protected Image img; - protected Graphics gg; + protected Graphics2D gg; protected int imgWidth; protected int imgHeight; @@ -68,7 +70,8 @@ public class IdCanvas extends JPanel img = createImage(imgWidth,imgHeight); - gg = img.getGraphics(); + + gg = (Graphics2D)img.getGraphics(); gg.setColor(Color.white); gg.fillRect(0,0,imgWidth,imgHeight);