Search in sources :

Example 1 with PdeTextArea

use of processing.app.syntax.PdeTextArea in project processing by processing.

the class MarkerColumn method paintComponent.

@Override
public void paintComponent(Graphics g) {
    PdeTextArea pta = editor.getPdeTextArea();
    if (pta != null) {
        g.drawImage(pta.getGutterGradient(), 0, 0, getWidth(), getHeight(), this);
    }
    int currentTabIndex = editor.getSketch().getCurrentCodeIndex();
    for (LineMarker m : errorPoints) {
        Problem problem = m.problem;
        if (problem.getTabIndex() != currentTabIndex)
            continue;
        if (problem.isError()) {
            g.setColor(errorColor);
        } else {
            g.setColor(warningColor);
        }
        g.drawLine(2, m.y, getWidth() - 2, m.y);
    }
}
Also used : Problem(processing.app.Problem) PdeTextArea(processing.app.syntax.PdeTextArea)

Aggregations

Problem (processing.app.Problem)1 PdeTextArea (processing.app.syntax.PdeTextArea)1