Class TextAreaModel.Line
java.lang.Object
dev.xichil.mvui.TextAreaModel.Line
- Enclosing class:
TextAreaModel
One line as drawn:
text().substring(start, end), without its line break. Immutable.-
Method Summary
Modifier and TypeMethodDescriptionintend()Offset just after the line's last character (before its'\n', if any).intstart()Offset of the line's first character inTextAreaModel.text().text()The line's text.booleanwrapped()True if the text goes on in the next line without a line break (word wrap).
-
Method Details
-
start
public int start()Offset of the line's first character inTextAreaModel.text().- Returns:
- the offset of the line's first character
-
end
public int end()Offset just after the line's last character (before its'\n', if any).- Returns:
- the offset just after the line's last character
-
wrapped
public boolean wrapped()True if the text goes on in the next line without a line break (word wrap).- Returns:
trueif the text goes on in the next line without a line break
-
text
-