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

Method reflowPages

src/org/albite/albite/BookCanvas.java:1703–1733  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1701 }
1702
1703 private void reflowPages() {
1704 /*
1705 * Free memory before claiming it!
1706 */
1707 chapterBooklet = null;
1708
1709 //#mdebug
1710 AlbiteMIDlet.LOGGER.log("canvases: " +
1711 currentPageCanvas.getWidth() + " / " +
1712 currentPageCanvas.getPageWidth() + ", " +
1713 currentPageCanvas.getHeight() + " / " +
1714 currentPageCanvas.getPageHeight()
1715 );
1716 //#enddebug
1717 chapterBooklet = new Booklet(
1718 currentPageCanvas.getPageWidth(),
1719 currentPageCanvas.getPageHeight(),
1720 inverted,
1721 currentBook.getCurrentChapter(),
1722 currentBook.getArchive(),
1723 fontPlain,
1724 fontItalic,
1725 currentLineSpacing,
1726 renderImages,
1727 //#if !(TinyMode || TinyModeExport || LightMode || LightModeExport)
1728 hyphenator,
1729 //#endif
1730 currentBook.getParser());
1731
1732 pagesCount = chapterBooklet.getPagesCount() - 3;
1733 }
1734
1735 public final void cycleColorSchemes() {
1736 currentScheme = currentScheme.getOther();

Callers 3

loadChapterMethod · 0.95
reloadPagesMethod · 0.95
reflowChapterMethod · 0.95

Calls 9

logMethod · 0.80
getPageWidthMethod · 0.80
getPageHeightMethod · 0.80
getCurrentChapterMethod · 0.80
getParserMethod · 0.80
getPagesCountMethod · 0.80
getWidthMethod · 0.45
getHeightMethod · 0.45
getArchiveMethod · 0.45

Tested by

no test coverage detected