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

Method drawChapterNum

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

Source from the content-addressed store, hash-verified

542 }
543 //#endif
544 private void drawChapterNum(final int w, final int h, final Graphics g) {
545
546 repaintChapterNum = false;
547
548 /*
549 * Clearing background
550 */
551 g.setColor(
552 currentScheme.colors[ColorScheme.COLOR_BACKGROUND]);
553
554 g.fillRect(0, h - statusBarHeight, chapterNoWidth, statusBarHeight);
555
556 /* drawing current chapter area */
557 fontStatus.drawChars(g, currentScheme.colors[
558 ColorScheme.COLOR_TEXT_STATUS], chapterNoChars,
559 STATUS_BAR_SPACING, h - statusBarHeight + STATUS_BAR_SPACING,
560 0, chapterNoChars.length);
561 }
562
563 private void drawProgressBar(final int w, final int h, final Graphics g) {
564

Callers 1

paintMethod · 0.95

Calls 2

setColorMethod · 0.80
drawCharsMethod · 0.45

Tested by

no test coverage detected