Interface ILine
Representation of a line within an
ITextDocumentPart
. A line should not contain new line
characters such as carriage-return or line-feed. A line may contain optional, non-overlapping
items that define regions of text onto which special meaning can be attached.
It is the responsibility of the implementor to make sure that lines do not contain CR/LF characters.
It is the responsibility of the implementor to make sure that items are non overlapping.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ILine
An empty line with no anchorstatic final int
This flag indicates that the current line is "disabled". -
Method Summary
-
Field Details
-
EMPTY_LINE
An empty line with no anchor -
FLAG_DISABLED_LINE
static final int FLAG_DISABLED_LINEThis flag indicates that the current line is "disabled". Clients rendering the line may interpret this flag in the way of their choosing; they may also ignore it.- See Also:
-
-
Method Details
-
getText
CharSequence getText()Get the line text. It is the responsibility of the implementor to make sure that lines do not contain CR/LF characters.- Returns:
- the line
-
getItems
Get the list of text items within the current line. It is the responsibility of the implementor to make sure that items are non overlapping and are sorted.- Returns:
- a list, possibly empty, of text items
-
getMarks
Get the list of marks for this line.- Returns:
-
getFlags
default int getFlags()Retrieve the flags for the entire line.- Returns:
- optional flags (may be 0)
-