mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
Removed arrow.
This commit is contained in:
parent
f233861a4c
commit
303b2e5103
@ -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() {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user