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

Method drawTab

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

Source from the content-addressed store, hash-verified

311
312
313 private void drawTab(Graphics g, int left, int right,
314 boolean leftNotch, boolean rightNotch,
315 boolean selected) {
316 Graphics2D g2 = (Graphics2D) g;
317 final int bottom = TAB_BOTTOM + (selected ? TAB_BELOW : 0);
318 g2.fill(Toolkit.createRoundRect(left, TAB_TOP,
319 right, bottom,
320 leftNotch ? CURVE_RADIUS : 0,
321 rightNotch ? CURVE_RADIUS : 0,
322 0, 0));
323 }
324
325
326 /**

Callers 2

paintComponentMethod · 0.95
placeTabsMethod · 0.95

Calls 2

createRoundRectMethod · 0.95
fillMethod · 0.45

Tested by

no test coverage detected