Interface ICoordinates
- All Known Implementing Classes:
Coordinates
public interface ICoordinates
This interface defines a coordinates system to locate characters within
ITextDocument
objects.
Text coordinates allow the addressing of character within a line.
Note that different addresses may point to the same character. The canonical address of a character is defined as the one whose anchorId is the id of the anchored chunk containing this character.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Get the anchor id.int
Get the column offset within the line identified by the (anchorId, lineDelta) couple.int
Get the line index within the anchored chunk.
-
Method Details
-
getAnchorId
long getAnchorId()Get the anchor id.- Returns:
- the anchor id
-
getLineDelta
int getLineDelta()Get the line index within the anchored chunk.- Returns:
- the line index
-
getColumnOffset
int getColumnOffset()Get the column offset within the line identified by the (anchorId, lineDelta) couple.- Returns:
- the column offset
-