本文整理了Java中com.koolearn.klibrary.text.view.ZLTextWordCursor.isEndOfParagraph()
方法的一些代码示例,展示了ZLTextWordCursor.isEndOfParagraph()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZLTextWordCursor.isEndOfParagraph()
方法的具体详情如下:
包路径:com.koolearn.klibrary.text.view.ZLTextWordCursor
类名称:ZLTextWordCursor
方法名:isEndOfParagraph
暂无
代码示例来源:origin: ydcx/KooReader
public boolean isEndOfText() {
return isEndOfParagraph() && myParagraphCursor.isLast();
}
代码示例来源:origin: Jiangzqts/EpubRead
public boolean isEndOfText() {
return isEndOfParagraph() && myParagraphCursor.isLast();
}
代码示例来源:origin: Jiangzqts/EpubRead
if (cursor.isEndOfParagraph()) {
++index;
代码示例来源:origin: Jiangzqts/EpubRead
if (cursor.isEndOfParagraph()) {
++index;
代码示例来源:origin: ydcx/KooReader
public TOCTree getCurrentTOCElement() {
final ZLTextWordCursor cursor = BookTextView.getStartCursor();
if (Model == null || cursor == null) {
return null;
}
int index = cursor.getParagraphIndex();
if (cursor.isEndOfParagraph()) {
++index;
}
TOCTree treeToSelect = null;
for (TOCTree tree : Model.TOCTree) {
final TOCTree.Reference reference = tree.getReference();
if (reference == null) {
continue;
}
if (reference.ParagraphIndex > index) {
break;
}
treeToSelect = tree;
}
return treeToSelect;
}
代码示例来源:origin: Jiangzqts/EpubRead
/**
* 获取到当前章节
*
* @return
*/
public TOCTree getCurrentTOCElement() {
final ZLTextWordCursor cursor = BookTextView.getStartCursor();
if (Model == null || cursor == null) {
return null;
}
int index = cursor.getParagraphIndex();
if (cursor.isEndOfParagraph()) {
++index;
}
TOCTree treeToSelect = null;
for (TOCTree tree : Model.TOCTree) {
final TOCTree.Reference reference = tree.getReference();
if (reference == null) {
continue;
}
if (reference.ParagraphIndex > index) {
break;
}
treeToSelect = tree;
}
return treeToSelect;
}
代码示例来源:origin: ydcx/KooReader
nextParagraph = result.isEndOfParagraph() && result.nextParagraph();
if (nextParagraph && result.getParagraphCursor().isEndOfSection()) {
if (page.Column0Height == 0 && page.twoColumnView() && !page.LineInfos.isEmpty()) {
代码示例来源:origin: Jiangzqts/EpubRead
nextParagraph = result.isEndOfParagraph() && result.nextParagraph();
if (nextParagraph && result.getParagraphCursor().isEndOfSection()) {
if (page.Column0Height == 0 && page.twoColumnView() && !page.LineInfos.isEmpty()) {
代码示例来源:origin: ydcx/KooReader
private void skip(ZLTextPage page, ZLTextWordCursor cursor, int unit, int size) {
final ZLTextParagraphCursor paragraphCursor = cursor.getParagraphCursor();
if (paragraphCursor == null) {
return;
}
final int endElementIndex = paragraphCursor.getParagraphLength();
resetTextStyle();
applyStyleChanges(paragraphCursor, 0, cursor.getElementIndex());
ZLTextLineInfo info = null;
while (!cursor.isEndOfParagraph() && size > 0) {
info = processTextLine(page, paragraphCursor, cursor.getElementIndex(), cursor.getCharIndex(), endElementIndex, info);
cursor.moveTo(info.EndElementIndex, info.EndCharIndex);
size -= infoSize(info, unit);
}
}
代码示例来源:origin: Jiangzqts/EpubRead
private void skip(ZLTextPage page, ZLTextWordCursor cursor, int unit, int size) {
final ZLTextParagraphCursor paragraphCursor = cursor.getParagraphCursor();
if (paragraphCursor == null) {
return;
}
final int endElementIndex = paragraphCursor.getParagraphLength();
resetTextStyle();
applyStyleChanges(paragraphCursor, 0, cursor.getElementIndex());
ZLTextLineInfo info = null;
while (!cursor.isEndOfParagraph() && size > 0) {
info = processTextLine(page, paragraphCursor, cursor.getElementIndex(), cursor.getCharIndex(), endElementIndex, info);
cursor.moveTo(info.EndElementIndex, info.EndCharIndex);
size -= infoSize(info, unit);
}
}
代码示例来源:origin: ydcx/KooReader
if (!sameStart && start.isEndOfParagraph() && end.isStartOfParagraph()) {
ZLTextWordCursor startCopy = new ZLTextWordCursor(start);
startCopy.nextParagraph();
代码示例来源:origin: Jiangzqts/EpubRead
if (!sameStart && start.isEndOfParagraph() && end.isStartOfParagraph()) {
ZLTextWordCursor startCopy = new ZLTextWordCursor(start);
startCopy.nextParagraph();
代码示例来源:origin: Jiangzqts/EpubRead
mainLoop:
for (int count = bookmark.getLength(); count > 0; cursor.nextWord()) {
while (cursor.isEndOfParagraph()) {
if (!cursor.nextParagraph()) {
break mainLoop;
代码示例来源:origin: ydcx/KooReader
mainLoop:
while (buffer.Builder.length() + sentenceBuffer.Builder.length() + phraseBuffer.Builder.length() < maxChars && sentenceCounter < maxChars / 20) {
while (cursor.isEndOfParagraph()) {
if (!cursor.nextParagraph()) {
break mainLoop;
代码示例来源:origin: Jiangzqts/EpubRead
mainLoop:
while (buffer.Builder.length() + sentenceBuffer.Builder.length() + phraseBuffer.Builder.length() < maxChars && sentenceCounter < maxChars / 20) {
while (cursor.isEndOfParagraph()) {
if (!cursor.nextParagraph()) {
break mainLoop;
代码示例来源:origin: ydcx/KooReader
mainLoop:
for (int count = bookmark.getLength(); count > 0; cursor.nextWord()) {
while (cursor.isEndOfParagraph()) {
if (!cursor.nextParagraph()) {
break mainLoop;
代码示例来源:origin: Jiangzqts/EpubRead
case ScrollingMode.SCROLL_LINES:
page.findLineFromStart(startCursor, myOverlappingValue);
if (startCursor.isEndOfParagraph()) {
startCursor.nextParagraph();
代码示例来源:origin: ydcx/KooReader
case ScrollingMode.SCROLL_LINES:
page.findLineFromStart(startCursor, myOverlappingValue);
if (startCursor.isEndOfParagraph()) {
startCursor.nextParagraph();
内容来源于网络,如有侵权,请联系作者删除!