From 427b5193ff4e96cf2a28cf72c1857a1ab5250201 Mon Sep 17 00:00:00 2001 From: James Procter Date: Mon, 4 Sep 2023 12:54:17 +0100 Subject: [PATCH] JAL-4250 rendition is way too obscure for me --- src/jalview/renderer/AnnotationRenderer.java | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/jalview/renderer/AnnotationRenderer.java b/src/jalview/renderer/AnnotationRenderer.java index d943d39..24fbb26 100644 --- a/src/jalview/renderer/AnnotationRenderer.java +++ b/src/jalview/renderer/AnnotationRenderer.java @@ -95,7 +95,7 @@ public class AnnotationRenderer private boolean av_ignoreGapsConsensus; - private boolean vectorRendition = false; + private boolean renderingVectors = false; private boolean glyphLineDrawn = false; @@ -469,7 +469,7 @@ public class AnnotationRenderer { if (g instanceof EpsGraphics2D || g instanceof SVGGraphics2D) { - this.setVectorRendition(true); + this.setVectorRendering(true); } Graphics2D g2d = (Graphics2D) g; @@ -911,7 +911,7 @@ public class AnnotationRenderer // temp = x; break; default: - if (isVectorRendition()) + if (isVectorRendering()) { // draw single full width glyphline drawGlyphLine(g, lastSSX, endRes - x, y, iconOffset); @@ -1052,7 +1052,7 @@ public class AnnotationRenderer x, y, iconOffset, startRes, column, validRes, validEnd); break; default: - if (isVectorRendition()) + if (isVectorRendering()) { // draw single full width glyphline drawGlyphLine(g, lastSSX, endRes - x, y, iconOffset); @@ -1250,7 +1250,7 @@ public class AnnotationRenderer int x1 = lastSSX; int x2 = (x * charWidth); - if (USE_FILL_ROUND_RECT || isVectorRendition()) + if (USE_FILL_ROUND_RECT || isVectorRendering()) { // draw glyph line behind helix (visible in EPS or SVG output) drawGlyphLine(g, lastSSX, x, y, iconOffset); @@ -1877,7 +1877,7 @@ public class AnnotationRenderer private void setAntialias(Graphics g) { - if (isVectorRendition()) + if (isVectorRendering()) { // no need to antialias vector drawings return; @@ -1892,7 +1892,7 @@ public class AnnotationRenderer private void unsetAntialias(Graphics g) { - if (isVectorRendition()) + if (isVectorRendering()) { // no need to antialias vector drawings return; @@ -1902,13 +1902,13 @@ public class AnnotationRenderer RenderingHints.VALUE_ANTIALIAS_OFF); } - public void setVectorRendition(boolean b) + public void setVectorRendering(boolean b) { - vectorRendition = b; + renderingVectors = b; } - public boolean isVectorRendition() + public boolean isVectorRendering() { - return vectorRendition; + return renderingVectors; } } -- 1.7.10.2