Skip to content

Commit

Permalink
Updated JavaDoc for getStyleRangeAtPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
Jugen committed May 28, 2024
1 parent fcafb5a commit b61a9ae
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ public interface StyleActions<PS, S> {
* If {@code position} points to a boundary between two styled ranges, then
* the range preceding {@code position} is returned. If {@code position}
* points to a boundary between two paragraphs, then the first styled range
* of the latter paragraph is returned.
* of the latter paragraph is returned. <b>Note</b> that the returned IndexRange
* is <i>relative</i> to the paragraph (NOT the document).
*/
IndexRange getStyleRangeAtPosition(int position);

Expand Down Expand Up @@ -108,6 +109,7 @@ default StyleSpans<S> getStyleSpans(IndexRange range) {
* Returns the range of homogeneous style that includes the given position
* in the given paragraph. If {@code position} points to a boundary between
* two styled ranges, then the range preceding {@code position} is returned.
* The returned IndexRange is <i>relative</i> to the paragraph.
*/
IndexRange getStyleRangeAtPosition(int paragraph, int position);

Expand Down

0 comments on commit b61a9ae

Please sign in to comment.