本文整理匯總了Java中org.geometerplus.android.fbreader.api.TextPosition類的典型用法代碼示例。如果您正苦於以下問題:Java TextPosition類的具體用法?Java TextPosition怎麽用?Java TextPosition使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
TextPosition類屬於org.geometerplus.android.fbreader.api包,在下文中一共展示了TextPosition類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getStoredPosition
import org.geometerplus.android.fbreader.api.TextPosition; //導入依賴的package包/類
public synchronized ZLTextPosition getStoredPosition(long bookId) {
if (myInterface == null) {
return null;
}
try {
final TextPosition position = myInterface.getStoredPosition(bookId);
if (position == null) {
return null;
}
return new ZLTextFixedPosition(
position.ParagraphIndex, position.ElementIndex, position.CharIndex
);
} catch (RemoteException e) {
return null;
}
}
示例2: getStoredPosition
import org.geometerplus.android.fbreader.api.TextPosition; //導入依賴的package包/類
public TextPosition getStoredPosition(long bookId) {
final ZLTextPosition position = myCollection.getStoredPosition(bookId);
if (position == null) {
return null;
}
return new TextPosition(
position.getParagraphIndex(), position.getElementIndex(), position.getCharIndex()
);
}
示例3: storePosition
import org.geometerplus.android.fbreader.api.TextPosition; //導入依賴的package包/類
public void storePosition(long bookId, TextPosition position) {
if (position == null) {
return;
}
myCollection.storePosition(bookId, new ZLTextFixedPosition(
position.ParagraphIndex, position.ElementIndex, position.CharIndex
));
}
示例4: storePosition
import org.geometerplus.android.fbreader.api.TextPosition; //導入依賴的package包/類
public synchronized void storePosition(long bookId, ZLTextPosition position) {
if (position != null && myInterface != null) {
try {
myInterface.storePosition(bookId, new TextPosition(
position.getParagraphIndex(), position.getElementIndex(), position.getCharIndex()
));
} catch (RemoteException e) {
}
}
}