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

Method Tab

app/src/processing/app/contrib/ManagerTabs.java:318–329  ·  view source on GitHub ↗
(Component comp, String name, String icon)

Source from the content-addressed store, hash-verified

316 int textWidth;
317
318 Tab(Component comp, String name, String icon) {
319 this.comp = comp;
320 this.name = name;
321
322 if (icon != null) {
323 enabledIcon = mode.loadImageX(icon + "-enabled");
324 selectedIcon = mode.loadImageX(icon + "-selected");
325 if (selectedIcon == null) {
326 selectedIcon = enabledIcon; // use this as the default
327 }
328 }
329 }
330
331 boolean contains(int x) {
332 return x >= left && x <= right;

Callers

nothing calls this directly

Calls 1

loadImageXMethod · 0.80

Tested by

no test coverage detected