org.fxmisc.richtext.GenericStyledArea . Specifies edit operations
on paragraph's styles, segments (like text), and segments' style, but does not worry about view-related aspects
(e.g. scrolling).
| Modifier and Type | Method and Description |
|---|---|
| public SuspendableNo | |
| public int | |
| public LiveList | |
| public boolean | |
| public Val | |
| public default EventStream | multiPlainChanges()
Returns an |
| public EventStream | multiRichChanges()
Returns an |
| public default EventStream | plainChanges()
Returns an |
| public default void | replace(Replacement<PS, SEG, S> replacement)
Convenience method for |
| public void | replace(int
the absolute position in the document that starts the portion to replace start, int the absolute position in the document that ends the portion to replace end, StyledDocument<PS, SEG, S> the document that replaces the removed portion of this document replacement)Replaces the portion of this document |
| public void | replaceMulti(List<Replacement<PS, SEG, S>> replacements)
Replaces multiple portions of this document in one update. |
| public default EventStream | richChanges()
Returns an |
| public void | setParagraphStyle(int paragraphIndex, PS style)
Sets the given paragraph to the given paragraph style |
| public void | setStyle(int
the absolute position in the document that starts the range to re-style from, int the absolute position in the document that ends the range to re-style to, S style)Sets the style of all segments in the given "from..to" range to the given style. |
| public void | |
| public void | setStyle(int paragraphIndex, int fromCol, int toCol, S style)
Sets the given range "fromCol..toCol" in the given paragraph to the given style |
| public void | setStyleSpans(int from, StyleSpans<? extends S> styleSpens)
Replaces the style spans for the given range |
| public void | setStyleSpans(int paragraphIndex, int from, StyleSpans<? extends S> styleSpens)
Replaces the style spans for the given range |
| public ReadOnlyStyledDocument | |
| public ObservableValue |
| beingUpdatedProperty | back to summary |
|---|---|
| public SuspendableNo beingUpdatedProperty() | |
| getLength | back to summary |
|---|---|
| public int getLength() | |
| getParagraphs | back to summary |
|---|---|
| public LiveList Redeclares org.
| |
| isBeingUpdated | back to summary |
|---|---|
| public boolean isBeingUpdated() | |
| lengthProperty | back to summary |
|---|---|
| public Val | |
| multiPlainChanges | back to summary |
|---|---|
| public default EventStream Returns an | |
| multiRichChanges | back to summary |
|---|---|
| public EventStream Returns an | |
| plainChanges | back to summary |
|---|---|
| public default EventStream Returns an | |
| replace | back to summary |
|---|---|
| public default void replace(Replacement<PS, SEG, S> replacement) Convenience method for | |
| replace | back to summary |
|---|---|
| public void replace(int start, int end, StyledDocument<PS, SEG, S> replacement) Replaces the portion of this document
| |
| replaceMulti | back to summary |
|---|---|
| public void replaceMulti(List<Replacement<PS, SEG, S>> replacements) Replaces multiple portions of this document in one update. | |
| richChanges | back to summary |
|---|---|
| public default EventStream Returns an | |
| setParagraphStyle | back to summary |
|---|---|
| public void setParagraphStyle(int paragraphIndex, PS style) Sets the given paragraph to the given paragraph style | |
| setStyle | back to summary |
|---|---|
| public void setStyle(int from, int to, S style) Sets the style of all segments in the given "from..to" range to the given style.
| |
| setStyle | back to summary |
|---|---|
| public void setStyle(int paragraphIndex, S style) Sets all segments in the given paragraph to the given style | |
| setStyle | back to summary |
|---|---|
| public void setStyle(int paragraphIndex, int fromCol, int toCol, S style) Sets the given range "fromCol..toCol" in the given paragraph to the given style | |
| setStyleSpans | back to summary |
|---|---|
| public void setStyleSpans(int from, StyleSpans<? extends S> styleSpens) Replaces the style spans for the given range | |
| setStyleSpans | back to summary |
|---|---|
| public void setStyleSpans(int paragraphIndex, int from, StyleSpans<? extends S> styleSpens) Replaces the style spans for the given range | |
| snapshot | back to summary |
|---|---|
| public ReadOnlyStyledDocument Read-only snapshot of the current state of this document. | |
| textProperty | back to summary |
|---|---|
| public ObservableValue | |