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

Method drawTab

app/src/processing/app/ui/EditorHeader.java:382–400  ·  view source on GitHub ↗
(Graphics g, int left, int right,
                       boolean leftNotch, boolean rightNotch)

Source from the content-addressed store, hash-verified

380
381
382 private void drawTab(Graphics g, int left, int right,
383 boolean leftNotch, boolean rightNotch) {
384// final int bottom = getHeight(); // - TAB_STRETCH;
385// final int top = bottom - TAB_HEIGHT;
386// g.fillRect(left, top, right - left, bottom - top);
387
388 Graphics2D g2 = (Graphics2D) g;
389 g2.fill(Toolkit.createRoundRect(left, TAB_TOP,
390 right, TAB_BOTTOM,
391 leftNotch ? CURVE_RADIUS : 0,
392 rightNotch ? CURVE_RADIUS : 0,
393 0, 0));
394
395// path.moveTo(left, TAB_BOTTOM);
396// if (left == MARGIN_WIDTH) { // first tab on the left
397// path.lineTo(left, TAB_TOP - CURVE_RADIUS);
398// }
399
400 }
401
402
403 /**

Callers 2

paintComponentMethod · 0.95
placeTabsMethod · 0.95

Calls 2

createRoundRectMethod · 0.95
fillMethod · 0.45

Tested by

no test coverage detected