MCPcopy Create free account
hub / github.com/Card-Forge/forge / draw

Method draw

forge-gui-mobile/src/forge/menu/FSubMenu.java:39–52  ·  view source on GitHub ↗
(Graphics g)

Source from the content-addressed store, hash-verified

37 }
38
39 @Override
40 public void draw(Graphics g) {
41 super.draw(g);
42
43 float divotWidth = DIVOT_WIDTH;
44 float divotHeight = divotWidth * 2f;
45 float x2 = getWidth() - GAP_X - 1;
46 float x1 = x2 - divotWidth;
47 float x3 = x1;
48 float y2 = getHeight() / 2;
49 float y1 = y2 - divotHeight / 2;
50 float y3 = y2 + divotHeight / 2;
51 g.fillTriangle(getForeColor(), x1, y1, x2, y2, x3, y3);
52 }
53}

Callers

nothing calls this directly

Calls 5

fillTriangleMethod · 0.80
drawMethod · 0.65
getWidthMethod · 0.65
getHeightMethod · 0.65
getForeColorMethod · 0.45

Tested by

no test coverage detected