MCPcopy Index your code
hub / github.com/benfry/processing4 / paintComponent

Method paintComponent

app/src/processing/app/ui/MarkerColumn.java:94–114  ·  view source on GitHub ↗
(Graphics g)

Source from the content-addressed store, hash-verified

92
93
94 @Override
95 public void paintComponent(Graphics g) {
96 PdeTextArea pta = editor.getPdeTextArea();
97 if (pta != null) {
98 g.drawImage(pta.getGutterGradient(),
99 0, 0, getWidth(), getHeight(), this);
100 }
101
102 int currentTabIndex = editor.getSketch().getCurrentCodeIndex();
103
104 for (LineMarker m : errorPoints) {
105 Problem problem = m.problem;
106 if (problem.getTabIndex() != currentTabIndex) continue;
107 if (problem.isError()) {
108 g.setColor(errorColor);
109 } else {
110 g.setColor(warningColor);
111 }
112 g.drawLine(2, m.y, getWidth() - 2, m.y);
113 }
114 }
115
116
117 public void updateErrorPoints(final List<Problem> problems) {

Callers

nothing calls this directly

Calls 9

getGutterGradientMethod · 0.95
getTabIndexMethod · 0.95
isErrorMethod · 0.95
getSketchMethod · 0.80
getPdeTextAreaMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45
getCurrentCodeIndexMethod · 0.45
setColorMethod · 0.45

Tested by

no test coverage detected