MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / drawButtons

Method drawButtons

src/org/albite/albite/BookCanvas.java:530–542  ·  view source on GitHub ↗
(final int w, final int h, final Graphics g)

Source from the content-addressed store, hash-verified

528
529 //#if !(TinyMode || TinyModeExport || LightMode || LightModeExport)
530 private void drawButtons(final int w, final int h, final Graphics g) {
531 g.setColor(currentScheme.colors[ColorScheme.COLOR_BACKGROUND]);
532 g.fillRect(0, 0, w, MENU_HEIGHT);
533
534 if (buttons != null) {
535 if (buttons.length > 0) {
536 for (int i = 0; i < buttons.length; i++) {
537 buttons[i].draw(g, buttons[i].getX(), buttons[i].getY());
538 }
539 repaintButtons = false;
540 }
541 }
542 }
543 //#endif
544 private void drawChapterNum(final int w, final int h, final Graphics g) {
545

Callers 1

paintMethod · 0.95

Calls 4

setColorMethod · 0.80
getXMethod · 0.80
getYMethod · 0.80
drawMethod · 0.45

Tested by

no test coverage detected