Search in sources :

Example 16 with BookModel

use of org.geometerplus.fbreader.bookmodel.BookModel in project FBReaderJ by geometer.

the class TestDescriptionBook method testBookModel.

public void testBookModel() {
    BookDescription bd = BookDescription.getDescription(myDirectory + "/" + filename, false);
    assertTrue(bd != null);
    BookModel bm = new BookModel(bd);
    assertTrue(bm != null);
//System.out.println(bm.getContentsModel().getParagraphsNumber());
}
Also used : BookModel(org.geometerplus.fbreader.bookmodel.BookModel) BookDescription(org.geometerplus.fbreader.description.BookDescription)

Aggregations

BookModel (org.geometerplus.fbreader.bookmodel.BookModel)16 FB2Reader (org.geometerplus.fbreader.formats.fb2.FB2Reader)13 ZLTextModel (org.geometerplus.zlibrary.text.model.ZLTextModel)8 ZLTextParagraph (org.geometerplus.zlibrary.text.model.ZLTextParagraph)2 BufferedImage (java.awt.image.BufferedImage)1 List (java.util.List)1 ContentsModel (org.geometerplus.fbreader.bookmodel.ContentsModel)1 BookDescription (org.geometerplus.fbreader.description.BookDescription)1 ZLFile (org.geometerplus.zlibrary.core.filesystem.ZLFile)1 ZLImageEntry (org.geometerplus.zlibrary.text.model.impl.ZLImageEntry)1 ZLSwingPaintContext (org.geometerplus.zlibrary.ui.swing.view.ZLSwingPaintContext)1