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

Method handleDummyPage

src/org/albite/albite/BookCanvas.java:1507–1531  ·  view source on GitHub ↗
(
            final byte type, final int bookScrollingDirection)

Source from the content-addressed store, hash-verified

1505 }
1506
1507 private void handleDummyPage(
1508 final byte type, final int bookScrollingDirection) {
1509
1510 stopScrolling();
1511
1512 switch (type) {
1513 case DummyPage.TYPE_CHAPTER_PREV:
1514 renderWaitCursor();
1515 goToLastPage(currentBook.getCurrentChapter().getPrevChapter());
1516 break;
1517
1518 case DummyPage.TYPE_CHAPTER_NEXT:
1519 renderWaitCursor();
1520 goToFirstPage(currentBook.getCurrentChapter().getNextChapter());
1521 break;
1522
1523 case DummyPage.TYPE_BOOK_START:
1524 case DummyPage.TYPE_BOOK_END:
1525 mode = MODE_PAGE_SCROLLING;
1526 scheduleScrolling(bookScrollingDirection);
1527 break;
1528 }
1529// repaint();
1530// serviceRepaints();
1531 }
1532
1533 private void loadPrevPage() {
1534 chapterBooklet.goToPrevPage();

Callers 1

scrollPagesMethod · 0.95

Calls 8

stopScrollingMethod · 0.95
renderWaitCursorMethod · 0.95
goToLastPageMethod · 0.95
goToFirstPageMethod · 0.95
scheduleScrollingMethod · 0.95
getPrevChapterMethod · 0.80
getCurrentChapterMethod · 0.80
getNextChapterMethod · 0.80

Tested by

no test coverage detected