From efeb9f5acea4eb5f9979d5aa6e9364aaa54679fd Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Fri, 21 Aug 2015 13:14:25 -0400 Subject: [PATCH] move that down there --- .../processing/mode/java/MarkerColumn.java | 34 ++++++++----------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/java/src/processing/mode/java/MarkerColumn.java b/java/src/processing/mode/java/MarkerColumn.java index dc2d8011a..714d348ab 100644 --- a/java/src/processing/mode/java/MarkerColumn.java +++ b/java/src/processing/mode/java/MarkerColumn.java @@ -77,25 +77,6 @@ public class MarkerColumn extends JPanel { // private List errorPointsOld = new ArrayList(); - public void paintComponent(Graphics g) { -// Graphics2D g2d = (Graphics2D) g; -// g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, -// RenderingHints.VALUE_ANTIALIAS_ON); - g.setColor(backgroundColor); - g.fillRect(0, 0, getWidth(), getHeight()); - - for (LineMarker m : errorPoints) { - if (m.getType() == LineMarker.ERROR) { - g.setColor(errorColor); - } else { - g.setColor(warningColor); - } - //g.fillRect(2, emarker.getY(), (getWidth() - 3), errorMarkerHeight); - g.drawLine(2, m.getY(), getWidth() - 2, m.getY()); - } - } - - public MarkerColumn(JavaEditor editor, int height) { this.editor = editor; this.errorCheckerService = editor.errorCheckerService; @@ -119,6 +100,21 @@ public class MarkerColumn extends JPanel { } + public void paintComponent(Graphics g) { + g.setColor(backgroundColor); + g.fillRect(0, 0, getWidth(), getHeight()); + + for (LineMarker m : errorPoints) { + if (m.getType() == LineMarker.ERROR) { + g.setColor(errorColor); + } else { + g.setColor(warningColor); + } + g.drawLine(2, m.getY(), getWidth() - 2, m.getY()); + } + } + + public List getErrorPoints() { return errorPoints; }