Class TextPosition
java.lang.Object
com.codename1.wordprocessing.TextPosition
A place between two characters of a paragraph: the caret position a point on a page maps to.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe offset in the paragraph's text, from zero to its length.final StringThe paragraph's id. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
paragraphId
The paragraph's id. -
offset
public final int offsetThe offset in the paragraph's text, from zero to its length.
-
-
Constructor Details
-
TextPosition
Creates a position.
Parameters
-
paragraphId: the paragraph's id -
offset: the offset in its text
-
-
-
Method Details
-
equals
-
hashCode
-
toString
-