|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectMarkPos
public abstract class MarkPos
Represents an abstract position within the text of a document. Provides methods to get the integer word position, and to count/extract text between this position and another position. Derived classes store additional information specific to certain types of documents.
Created: Dec 14, 2004
Constructor Summary | |
---|---|
MarkPos()
|
Method Summary | |
---|---|
Object |
clone()
Make an exact copy of this object |
abstract int |
countTextTo(MarkPos other)
Counts the number of characters of text starting at this position and ending at another position. |
abstract String |
getTextTo(MarkPos other)
Retrieves all the text starting at this position and ending at another position. |
abstract int |
wordPos()
Retrieves the absolute position (in number of words) from the start of the document or field. |
Methods inherited from class Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarkPos()
Method Detail |
---|
public Object clone()
clone
in class Object
public abstract int wordPos()
public abstract int countTextTo(MarkPos other)
public abstract String getTextTo(MarkPos other)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |