From 303b2e5103546f34fe956b943d9b753f0979dae2 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Tue, 23 Aug 2011 19:29:36 +0200 Subject: [PATCH] Removed arrow. --- .../processing/app/syntax/SyntaxUtilities.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/app/src/processing/app/syntax/SyntaxUtilities.java b/app/src/processing/app/syntax/SyntaxUtilities.java index d4df8da90..f6aa20e2b 100644 --- a/app/src/processing/app/syntax/SyntaxUtilities.java +++ b/app/src/processing/app/syntax/SyntaxUtilities.java @@ -218,29 +218,12 @@ public class SyntaxUtilities styles[Token.URL].setGraphicsFlags(gfx, f); x = Utilities.drawTabbedText(tag, x, y, gfx, expander, 0); - // Draw arrow. - FontMetrics metrics = gfx.getFontMetrics(); - int h = metrics.getHeight() - 2; - drawArrow(gfx, x, y - h + metrics.getDescent() - 1, h, h); - commentStyle.setGraphicsFlags(gfx, f); if (post.length()>0) x = Utilities.drawTabbedText(post, x, y, gfx, expander, 0); return x; } - private static void drawArrow(Graphics gfx, int x, int y, int w, int h) { - int h2 = h / 2; - int h4 = h / 4; - gfx.drawLine(x, y+h2, x+h2, y); - gfx.drawLine(x+h2, y, x+h2, y+h4); - gfx.drawLine(x+h2, y+h4, x+h, y+h4); - gfx.drawLine(x+h, y+h4, x+h, y+h-h4); - gfx.drawLine(x+h, y+h-h4, x+h2, y+h-h4); - gfx.drawLine(x+h2,y+h-h4, x+h2, y+h); - gfx.drawLine(x, y+h2, x+h2, y+h); - } - // private members private SyntaxUtilities() {} }