JAL-4375 I don't think turning off antialiasing is necessary and possibly not appropriate
authorBen Soares <b.soares@dundee.ac.uk>
Fri, 2 Feb 2024 11:28:52 +0000 (11:28 +0000)
committerBen Soares <b.soares@dundee.ac.uk>
Fri, 2 Feb 2024 11:28:52 +0000 (11:28 +0000)
src/jalview/renderer/ContactMapRenderer.java

index 9a295f9..f966e24 100644 (file)
@@ -24,7 +24,6 @@ import java.awt.BasicStroke;
 import java.awt.Color;
 import java.awt.Graphics;
 import java.awt.Graphics2D;
-import java.awt.RenderingHints;
 import java.awt.Stroke;
 
 import jalview.api.AlignViewportI;
@@ -162,8 +161,9 @@ public abstract class ContactMapRenderer implements AnnotationRowRendererI
       return;
     }
     Graphics2D g2d = (Graphics2D) g;
-    g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
-            RenderingHints.VALUE_ANTIALIAS_OFF);
+    // Not sure turning off antialiasing is appropriate here
+    // g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
+    // RenderingHints.VALUE_ANTIALIAS_OFF);
     g2d.setStroke(thinRectangularLineStroke);
     while (x < eRes - sRes)
     {