String).
Paragraph that each contain a list of styleable segments.
| Modifier and Type | Method and Description |
|---|---|
| public default char | |
| public StyledDocument | |
| public default int | getAbsolutePosition(int
The index of the paragraph from which to start. paragraphIndex, int If positive, the index going forward (the given paragraph's line or the next one(s)).
If negative, the index going backward (the previous paragraph's line(s)) columnPosition)Returns the absolute position (i.e. the spot in-between characters) of the given column position in the given paragraph. |
| public default Paragraph | |
| public default int | |
| public List | |
| public default PS | |
| public default PS | |
| public default S | |
| public default S | |
| public default S | |
| public default S | |
| public default IndexRange | |
| public default IndexRange | |
| public default StyleSpans | |
| public default StyleSpans | |
| public default StyleSpans | |
| public String | |
| public default String | |
| public default String | |
| public default String | |
| public int | |
| public default StyledDocument | |
| public StyledDocument | |
| public default StyledDocument |
| charAt | back to summary |
|---|---|
| public default char charAt(int index) | |
| concat | back to summary |
|---|---|
| public StyledDocument | |
| getAbsolutePosition | back to summary |
|---|---|
| public default int getAbsolutePosition(int paragraphIndex, int columnPosition) Returns the absolute position (i.e. the spot in-between characters) of the given column position in the given paragraph. For example, given a text with only one line ┌ character index 0 | ┌ character index 1 | | ┌ character index 3 | | | v v v |t|e|x|t| ^ ^ ^ | | | | | └ position 4 | └ position 1 └ position 0 Warning: Off-By-One errors can easily occurIf the column index spans outside of the given paragraph's length, the returned value will pass on to the previous/next paragraph. In other words, given a document with two paragraphs (where the first paragraph's text is "some" and the second "thing"), then the following statements are true:
| |
| getParagraph | back to summary |
|---|---|
| public default Paragraph | |
| getParagraphLength | back to summary |
|---|---|
| public default int getParagraphLength(int paragraphIndex) | |
| getParagraphs | back to summary |
|---|---|
| public List | |
| getParagraphStyle | back to summary |
|---|---|
| public default PS getParagraphStyle(int paragraph) | |
| getParagraphStyleAtPosition | back to summary |
|---|---|
| public default PS getParagraphStyleAtPosition(int position) | |
| getStyleAtPosition | back to summary |
|---|---|
| public default S getStyleAtPosition(int position) | |
| getStyleAtPosition | back to summary |
|---|---|
| public default S getStyleAtPosition(int paragraph, int position) | |
| getStyleOfChar | back to summary |
|---|---|
| public default S getStyleOfChar(int index) | |
| getStyleOfChar | back to summary |
|---|---|
| public default S getStyleOfChar(int paragraph, int column) | |
| getStyleRangeAtPosition | back to summary |
|---|---|
| public default IndexRange getStyleRangeAtPosition(int position) | |
| getStyleRangeAtPosition | back to summary |
|---|---|
| public default IndexRange getStyleRangeAtPosition(int paragraph, int position) | |
| getStyleSpans | back to summary |
|---|---|
| public default StyleSpans | |
| getStyleSpans | back to summary |
|---|---|
| public default StyleSpans | |
| getStyleSpans | back to summary |
|---|---|
| public default StyleSpans | |
| getText | back to summary |
|---|---|
| public String getText() | |
| getText | back to summary |
|---|---|
| public default String getText(IndexRange range) | |
| getText | back to summary |
|---|---|
| public default String getText(int start, int end) | |
| getText | back to summary |
|---|---|
| public default String getText(int paragraphIndex) | |
| length | back to summary |
|---|---|
| public int length() | |
| subDocument | back to summary |
|---|---|
| public default StyledDocument | |
| subSequence | back to summary |
|---|---|
| public StyledDocument | |
| subSequence | back to summary |
|---|---|
| public default StyledDocument | |