本文整理了Java中com.koolearn.klibrary.text.view.ZLTextWordCursor.isNull()
方法的一些代码示例,展示了ZLTextWordCursor.isNull()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZLTextWordCursor.isNull()
方法的具体详情如下:
包路径:com.koolearn.klibrary.text.view.ZLTextWordCursor
类名称:ZLTextWordCursor
方法名:isNull
暂无
代码示例来源:origin: ydcx/KooReader
public void moveToParagraphStart() {
if (!isNull()) {
myElementIndex = 0;
myCharIndex = 0;
}
}
代码示例来源:origin: Jiangzqts/EpubRead
public void moveToParagraphStart() {
if (!isNull()) {
myElementIndex = 0;
myCharIndex = 0;
}
}
代码示例来源:origin: ydcx/KooReader
public ZLTextWordCursor getStartCursor() {
if (myCurrentPage.StartCursor.isNull()) {
preparePaintInfo(myCurrentPage);
}
return myCurrentPage.StartCursor;
}
代码示例来源:origin: Jiangzqts/EpubRead
public ZLTextWordCursor getEndCursor() {
if (myCurrentPage.EndCursor.isNull()) {
preparePaintInfo(myCurrentPage);
}
return myCurrentPage.EndCursor;
}
代码示例来源:origin: ydcx/KooReader
public void moveToParagraphEnd() {
if (!isNull()) {
myElementIndex = myParagraphCursor.getParagraphLength();
myCharIndex = 0;
}
}
代码示例来源:origin: Jiangzqts/EpubRead
public ZLTextWordCursor getStartCursor() {
if (myCurrentPage.StartCursor.isNull()) {
preparePaintInfo(myCurrentPage);
}
return myCurrentPage.StartCursor;
}
代码示例来源:origin: ydcx/KooReader
boolean intersects(ZLTextPage page) {
return
!isEmpty() &&
!page.StartCursor.isNull() && !page.EndCursor.isNull() &&
page.StartCursor.compareTo(getEndPosition()) < 0 &&
page.EndCursor.compareTo(getStartPosition()) > 0;
}
代码示例来源:origin: Jiangzqts/EpubRead
void moveStartCursor(int paragraphIndex, int wordIndex, int charIndex) { // 章节
if (StartCursor.isNull()) {
StartCursor.setCursor(EndCursor);
}
StartCursor.moveToParagraph(paragraphIndex);
StartCursor.moveTo(wordIndex, charIndex);
EndCursor.reset();
LineInfos.clear();
PaintState = PaintStateEnum.START_IS_KNOWN;
}
//
代码示例来源:origin: ydcx/KooReader
public void rebuild() {
if (!isNull()) {
myParagraphCursor.clear();
myParagraphCursor.fill();
moveTo(myElementIndex, myCharIndex);
}
}
代码示例来源:origin: ydcx/KooReader
public boolean nextParagraph() {
if (!isNull()) {
if (!myParagraphCursor.isLast()) {
myParagraphCursor = myParagraphCursor.next();
moveToParagraphStart();
return true;
}
}
return false;
}
代码示例来源:origin: Jiangzqts/EpubRead
public void rebuild() {
if (!isNull()) {
myParagraphCursor.clear();
myParagraphCursor.fill();
moveTo(myElementIndex, myCharIndex);
}
}
代码示例来源:origin: ydcx/KooReader
void moveStartCursor(int paragraphIndex, int wordIndex, int charIndex) { // 章节
if (StartCursor.isNull()) {
StartCursor.setCursor(EndCursor);
}
StartCursor.moveToParagraph(paragraphIndex);
StartCursor.moveTo(wordIndex, charIndex);
EndCursor.reset();
LineInfos.clear();
PaintState = PaintStateEnum.START_IS_KNOWN;
}
//
代码示例来源:origin: ydcx/KooReader
public boolean previousParagraph() {
if (!isNull()) {
if (!myParagraphCursor.isFirst()) {
myParagraphCursor = myParagraphCursor.previous();
moveToParagraphStart();
return true;
}
}
return false;
}
代码示例来源:origin: Jiangzqts/EpubRead
public boolean previousParagraph() {
if (!isNull()) {
if (!myParagraphCursor.isFirst()) {
myParagraphCursor = myParagraphCursor.previous();
moveToParagraphStart();
return true;
}
}
return false;
}
代码示例来源:origin: Jiangzqts/EpubRead
public synchronized void findNext() {
final ZLTextWordCursor end = myCurrentPage.EndCursor;
if (!end.isNull()) {
gotoMark(myModel.getNextMark(end.getMark()));
}
}
代码示例来源:origin: Jiangzqts/EpubRead
public synchronized void findPrevious() {
final ZLTextWordCursor start = myCurrentPage.StartCursor;
if (!start.isNull()) {
gotoMark(myModel.getPreviousMark(start.getMark()));
}
}
代码示例来源:origin: ydcx/KooReader
public synchronized void findNext() {
final ZLTextWordCursor end = myCurrentPage.EndCursor;
if (!end.isNull()) {
gotoMark(myModel.getNextMark(end.getMark()));
}
}
代码示例来源:origin: ydcx/KooReader
public synchronized void findPrevious() {
final ZLTextWordCursor start = myCurrentPage.StartCursor;
if (!start.isNull()) {
gotoMark(myModel.getPreviousMark(start.getMark()));
}
}
代码示例来源:origin: ydcx/KooReader
public void gotoHome() {
final ZLTextWordCursor cursor = getStartCursor();
if (!cursor.isNull() && cursor.isStartOfParagraph() && cursor.getParagraphIndex() == 0) {
return;
}
gotoPosition(0, 0, 0);
preparePaintInfo();
}
代码示例来源:origin: Jiangzqts/EpubRead
public void gotoHome() {
final ZLTextWordCursor cursor = getStartCursor();
if (!cursor.isNull() && cursor.isStartOfParagraph() && cursor.getParagraphIndex() == 0) {
return;
}
gotoPosition(0, 0, 0);
preparePaintInfo();
}
内容来源于网络,如有侵权,请联系作者删除!