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);
}
}
Aggregations