MCPcopy Index your code
hub / github.com/processing/processing / Tab

Method Tab

app/src/processing/app/ui/EditorFooter.java:344–356  ·  view source on GitHub ↗
(Component comp, String name, String icon)

Source from the content-addressed store, hash-verified

342 int textWidth;
343
344 Tab(Component comp, String name, String icon) {
345 this.comp = comp;
346 this.name = name;
347
348 if (icon != null) {
349 Mode mode = editor.getMode();
350 enabledIcon = mode.loadImageX(icon + "-enabled");
351 selectedIcon = mode.loadImageX(icon + "-selected");
352 if (selectedIcon == null) {
353 selectedIcon = enabledIcon; // use this as the default
354 }
355 }
356 }
357
358 boolean contains(int x) {
359 return x >= left && x <= right;

Callers

nothing calls this directly

Calls 2

loadImageXMethod · 0.95
getModeMethod · 0.45

Tested by

no test coverage detected