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

Method loadChapter

src/org/albite/albite/BookCanvas.java:1593–1606  ·  view source on GitHub ↗
(final Chapter chapter)

Source from the content-addressed store, hash-verified

1591 }
1592
1593 private void loadChapter(final Chapter chapter) {
1594
1595 if (chapter != currentBook.getCurrentChapter()
1596 || chapterBooklet == null) {
1597
1598 /* chapter changed or book not loaded at all */
1599 currentBook.unloadChaptersBuffers();
1600 currentBook.setCurrentChapter(chapter);
1601 updateChapterNum(chapter.getNumber() + 1);
1602 renderWaitCursor();
1603 reflowPages();
1604 mode = MODE_PAGE_READING;
1605 }
1606 }
1607
1608 public final void goToFirstPage(final int chapterNumber) {
1609 final Chapter c = currentBook.getChapter(chapterNumber);

Callers 3

goToFirstPageMethod · 0.95
goToLastPageMethod · 0.95
goToPositionMethod · 0.95

Calls 7

updateChapterNumMethod · 0.95
renderWaitCursorMethod · 0.95
reflowPagesMethod · 0.95
getCurrentChapterMethod · 0.80
unloadChaptersBuffersMethod · 0.80
setCurrentChapterMethod · 0.80
getNumberMethod · 0.80

Tested by

no test coverage detected