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

Method draw

forge-gui-mobile/src/forge/toolbox/FComboBox.java:215–228  ·  view source on GitHub ↗
(Graphics g)

Source from the content-addressed store, hash-verified

213 }
214
215 @Override
216 public void draw(Graphics g) {
217 super.draw(g);
218
219 float divotWidth = getDivotWidth();
220 float divotHeight = divotWidth * 0.5f;
221 float x3 = getWidth() - PADDING - 1;
222 float x1 = x3 - divotWidth;
223 float x2 = x1 + divotWidth / 2;
224 float y1 = getHeight() / 2 - 1;
225 float y2 = y1 + divotHeight;
226 float y3 = y1;
227 g.fillTriangle(getForeColor(), x1, y1, x2, y2, x3, y3);
228 }
229
230 private float getDivotWidth() {
231 return getHeight() / 3 + 1;

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected