TextEditingArea.
| Modifier and Type | Method and Description |
|---|---|
| public default void | |
| public default void | |
| public default void | clearStyle(int paragraph, int from, int to)
Resets the style of the given range in the given paragraph to the initial style. |
| public default void | |
| public PS | |
| public S | |
| public PS | getParagraphStyleForInsertionAt(int pos)
Returns |
| public S | |
| public S | getStyleAtPosition(int paragraph, int position)
Returns the style at the given position in the given paragraph. |
| public S | |
| public S | getStyleOfChar(int paragraph, int index)
Returns the style of the character with the given index in the given paragraph. |
| public IndexRange | getStyleRangeAtPosition(int position)
Returns the range of homogeneous style that includes the given position. |
| public IndexRange | getStyleRangeAtPosition(int paragraph, int position)
Returns the range of homogeneous style that includes the given position in the given paragraph. |
| public StyleSpans | |
| public default StyleSpans | |
| public StyleSpans | |
| public StyleSpans | getStyleSpans(int paragraph, int from, int to)
Returns the styles in the given character range of the given paragraph. |
| public default StyleSpans | getStyleSpans(int paragraph, IndexRange range)
Returns the styles in the given character range of the given paragraph. |
| public S | getTextStyleForInsertionAt(int pos)
Returns |
| public default boolean | getUseInitialStyleForInsertion()
Indicates whether the initial style should also be used for plain text inserted into this text area. |
| public boolean | isPreserveStyle()
Indicates whether style should be preserved on undo/redo (and in the future copy/paste and text move). |
| public void | |
| public void | |
| public void | |
| public void | setStyle(int paragraph, int from, int to, S style)
Sets style for the given range relative in the given paragraph. |
| public void | |
| public void | setStyleSpans(int paragraph, int from, StyleSpans<? extends S> styleSpans)
Set multiple style ranges of a paragraph at once. |
| public default void | |
| public BooleanProperty |
| clearParagraphStyle | back to summary |
|---|---|
| public default void clearParagraphStyle(int paragraph) Resets the style of the given paragraph to the initial style. | |
| clearStyle | back to summary |
|---|---|
| public default void clearStyle(int from, int to) Resets the style of the given range to the initial style. | |
| clearStyle | back to summary |
|---|---|
| public default void clearStyle(int paragraph, int from, int to) Resets the style of the given range in the given paragraph to the initial style. | |
| clearStyle | back to summary |
|---|---|
| public default void clearStyle(int paragraph) Resets the style of the given paragraph to the initial style. | |
| getInitialParagraphStyle | back to summary |
|---|---|
| public PS getInitialParagraphStyle() Style used by default when no other style is provided. | |
| getInitialTextStyle | back to summary |
|---|---|
| public S getInitialTextStyle() Style used by default when no other style is provided. | |
| getParagraphStyleForInsertionAt | back to summary |
|---|---|
| public PS getParagraphStyleForInsertionAt(int pos) Returns | |
| getStyleAtPosition | back to summary |
|---|---|
| public S getStyleAtPosition(int position) Returns the style at the given position. That is the style of the
character immediately preceding In other words, most of the time | |
| getStyleAtPosition | back to summary |
|---|---|
| public S getStyleAtPosition(int paragraph, int position) Returns the style at the given position in the given paragraph.
This is equivalent to | |
| getStyleOfChar | back to summary |
|---|---|
| public S getStyleOfChar(int index) Returns the style of the character with the given index.
If | |
| getStyleOfChar | back to summary |
|---|---|
| public S getStyleOfChar(int paragraph, int index) Returns the style of the character with the given index in the given
paragraph. If | |
| getStyleRangeAtPosition | back to summary |
|---|---|
| public IndexRange getStyleRangeAtPosition(int position) Returns the range of homogeneous style that includes the given position.
If Note that the returned IndexRange is relative to the paragraph (NOT the document). | |
| getStyleRangeAtPosition | back to summary |
|---|---|
| public IndexRange getStyleRangeAtPosition(int paragraph, int position) Returns the range of homogeneous style that includes the given position
in the given paragraph. If | |
| getStyleSpans | back to summary |
|---|---|
| public StyleSpans Returns the styles in the given character range. | |
| getStyleSpans | back to summary |
|---|---|
| public default StyleSpans Returns the styles in the given character range. | |
| getStyleSpans | back to summary |
|---|---|
| public StyleSpans Returns styles of the whole paragraph. | |
| getStyleSpans | back to summary |
|---|---|
| public StyleSpans Returns the styles in the given character range of the given paragraph. | |
| getStyleSpans | back to summary |
|---|---|
| public default StyleSpans Returns the styles in the given character range of the given paragraph. | |
| getTextStyleForInsertionAt | back to summary |
|---|---|
| public S getTextStyleForInsertionAt(int pos) Returns | |
| getUseInitialStyleForInsertion | back to summary |
|---|---|
| public default boolean getUseInitialStyleForInsertion() Indicates whether the initial style should also be used for plain text
inserted into this text area. When | |
| isPreserveStyle | back to summary |
|---|---|
| public boolean isPreserveStyle() Indicates whether style should be preserved on undo/redo (and in the future copy/paste and text move). | |
| setParagraphStyle | back to summary |
|---|---|
| public void setParagraphStyle(int paragraph, PS paragraphStyle) Sets style for the whole paragraph. | |
| setStyle | back to summary |
|---|---|
| public void setStyle(int from, int to, S style) Sets style for the given character range. | |
| setStyle | back to summary |
|---|---|
| public void setStyle(int paragraph, S style) Sets style for the whole paragraph. | |
| setStyle | back to summary |
|---|---|
| public void setStyle(int paragraph, int from, int to, S style) Sets style for the given range relative in the given paragraph. | |
| setStyleSpans | back to summary |
|---|---|
| public void setStyleSpans(int from, StyleSpans<? extends S> styleSpans) Set multiple style ranges at once. This is equivalent to
for(StyleSpan
but the actual implementation in org. is
more efficient.
| |
| setStyleSpans | back to summary |
|---|---|
| public void setStyleSpans(int paragraph, int from, StyleSpans<? extends S> styleSpans) Set multiple style ranges of a paragraph at once. This is equivalent to
for(StyleSpan
but the actual implementation in org. is
more efficient.
| |
| setUseInitialStyleForInsertion | back to summary |
|---|---|
| public default void setUseInitialStyleForInsertion(boolean value) | |
| useInitialStyleForInsertionProperty | back to summary |
|---|---|
| public BooleanProperty useInitialStyleForInsertionProperty() | |