Text class.
The extra items can be styled using the properties (and accessors/mutators) or via CSS.
Each property is documented with its CSS property. Each CSS property begins with the "-rtfx"
prefix.
Note that the underline properties specified here are orthogonal to the underlineProperty() inherited
from Text. The underline properties defined here in TextExt will cause an underline to be
drawn if underlineWidthProperty() is non-null and greater than zero, regardless of
the value of underlineProperty().
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final StyleableObjectProperty | |
| private final StyleableObjectProperty | |
| private final StyleableObjectProperty | |
| private final StyleableObjectProperty | |
| private final StyleableObjectProperty | |
| private static final List | |
| private final StyleableObjectProperty | |
| private final StyleableObjectProperty | |
| private final StyleableObjectProperty | |
| private final StyleableObjectProperty | |
| private final StyleableObjectProperty | |
| private final StyleableObjectProperty | |
| private final StyleableObjectProperty |
| Modifier and Type | Method and Description |
|---|---|
| public ObjectProperty | |
| public ObjectProperty | |
| public ObjectProperty | |
| public ObjectProperty | |
| public ObjectProperty | |
| public Paint | |
| public Paint | |
| public Number[] | |
| public StrokeType | |
| public Number | |
| public List | getCssMetaData()
Overrides javafx. Implements javafx. This method should delegate to |
| public StrokeLineCap | |
| public Paint | |
| public Number[] | |
| public Number | |
| public Number | |
| public Number | |
| public Number | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public ObjectProperty | underlineCapProperty()
The end cap style used for drawing each dash in a dashed underline for a section of text. |
| public ObjectProperty | |
| public ObjectProperty | |
| public ObjectProperty | |
| public ObjectProperty | |
| public ObjectProperty | |
| public ObjectProperty |
| backgroundColor | back to summary |
|---|---|
| private final StyleableObjectProperty<Paint> backgroundColor | |
| borderStrokeColor | back to summary |
|---|---|
| private final StyleableObjectProperty<Paint> borderStrokeColor | |
| borderStrokeDashArray | back to summary |
|---|---|
| private final StyleableObjectProperty<Number[]> borderStrokeDashArray | |
| borderStrokeType | back to summary |
|---|---|
| private final StyleableObjectProperty<StrokeType> borderStrokeType | |
| borderStrokeWidth | back to summary |
|---|---|
| private final StyleableObjectProperty<Number> borderStrokeWidth | |
| CSS_META_DATA_LIST | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> CSS_META_DATA_LIST | |
| underlineCap | back to summary |
|---|---|
| private final StyleableObjectProperty<StrokeLineCap> underlineCap | |
| underlineColor | back to summary |
|---|---|
| private final StyleableObjectProperty<Paint> underlineColor | |
| underlineDashArray | back to summary |
|---|---|
| private final StyleableObjectProperty<Number[]> underlineDashArray | |
| underlineDoubleGap | back to summary |
|---|---|
| private final StyleableObjectProperty<Number> underlineDoubleGap | |
| underlineOffset | back to summary |
|---|---|
| private final StyleableObjectProperty<Number> underlineOffset | |
| underlineWaveRadius | back to summary |
|---|---|
| private final StyleableObjectProperty<Number> underlineWaveRadius | |
| underlineWidth | back to summary |
|---|---|
| private final StyleableObjectProperty<Number> underlineWidth | |
| TextExt | back to summary |
|---|---|
| public TextExt(String text) | |
| TextExt | back to summary |
|---|---|
| public TextExt() | |
| backgroundColorProperty | back to summary |
|---|---|
| public ObjectProperty The background color of the section of text. By default, JavaFX doesn't support a background for Text (as it is a Shape item), but RichTextFX does support drawing a different background for different sections of text. Note that this is actually a Paint type, so you can specify gradient or image fills rather than a flat colour. But due to line wrapping, it's possible that the fill may be used multiple times on separate lines even for the same segment of text. Can be styled from CSS using the "-rtfx-background-color" property. | |
| borderStrokeColorProperty | back to summary |
|---|---|
| public ObjectProperty The border stroke color of the section of text. By default, JavaFX doesn't
support a border for Text (as it is a Shape item), but RichTextFX
does support drawing a different background for different sections of text. The border
will only be drawn if this has a non-null value and Note that this is actually a Paint type, so you can specify gradient or image fills rather than a flat colour. But due to line wrapping, it's possible that the fill may be used multiple times on separate lines even for the same segment of text. Can be styled from CSS using the "-rtfx-border-stroke-color" property. | |
| borderStrokeDashArrayProperty | back to summary |
|---|---|
| public ObjectProperty The dash array used for drawing the border for a section of text. The border stroke will only be drawn
if borderStrokeColorProperty() (which determines the color) has a non-null value.
See | |
| borderStrokeTypeProperty | back to summary |
|---|---|
| public ObjectProperty The stroke type of the border stroke. The border stroke will only be drawn
if borderStrokeColorProperty() (which determines the color) has a non-null value.
See | |
| borderStrokeWidthProperty | back to summary |
|---|---|
| public ObjectProperty The width of the border stroke. The border stroke will only be drawn
if borderStrokeColorProperty() (which determines the color) has a non-null value.
See | |
| getBackgroundColor | back to summary |
|---|---|
| public Paint getBackgroundColor() | |
| getBorderStrokeColor | back to summary |
|---|---|
| public Paint getBorderStrokeColor() | |
| getBorderStrokeDashArray | back to summary |
|---|---|
| public Number[] getBorderStrokeDashArray() | |
| getBorderStrokeType | back to summary |
|---|---|
| public StrokeType getBorderStrokeType() | |
| getBorderStrokeWidth | back to summary |
|---|---|
| public Number getBorderStrokeWidth() | |
| getCssMetaData | back to summary |
|---|---|
| public List Overrides javafx. Implements javafx. Doc from javafx. This method should delegate to
| |
| getUnderlineCap | back to summary |
|---|---|
| public StrokeLineCap getUnderlineCap() | |
| getUnderlineColor | back to summary |
|---|---|
| public Paint getUnderlineColor() | |
| getUnderlineDashArray | back to summary |
|---|---|
| public Number[] getUnderlineDashArray() | |
| getUnderlineDoubleGap | back to summary |
|---|---|
| public Number getUnderlineDoubleGap() | |
| getUnderlineOffset | back to summary |
|---|---|
| public Number getUnderlineOffset() | |
| getUnderlineWaveRadius | back to summary |
|---|---|
| public Number getUnderlineWaveRadius() | |
| getUnderlineWidth | back to summary |
|---|---|
| public Number getUnderlineWidth() | |
| setBackgroundColor | back to summary |
|---|---|
| public void setBackgroundColor(Paint fill) | |
| setBorderStrokeColor | back to summary |
|---|---|
| public void setBorderStrokeColor(Paint fill) | |
| setBorderStrokeDashArray | back to summary |
|---|---|
| public void setBorderStrokeDashArray(Number[] array) | |
| setBorderStrokeType | back to summary |
|---|---|
| public void setBorderStrokeType(StrokeType type) | |
| setBorderStrokeWidth | back to summary |
|---|---|
| public void setBorderStrokeWidth(Number width) | |
| setUnderlineCap | back to summary |
|---|---|
| public void setUnderlineCap(StrokeLineCap cap) | |
| setUnderlineColor | back to summary |
|---|---|
| public void setUnderlineColor(Paint fill) | |
| setUnderlineDashArray | back to summary |
|---|---|
| public void setUnderlineDashArray(Number[] dashArray) | |
| setUnderlineDoubleGap | back to summary |
|---|---|
| public void setUnderlineDoubleGap(Number radius) | |
| setUnderlineOffset | back to summary |
|---|---|
| public void setUnderlineOffset(Number width) | |
| setUnderlineWaveRadius | back to summary |
|---|---|
| public void setUnderlineWaveRadius(Number radius) | |
| setUnderlineWidth | back to summary |
|---|---|
| public void setUnderlineWidth(Number width) | |
| underlineCapProperty | back to summary |
|---|---|
| public ObjectProperty The end cap style used for drawing each dash in a dashed underline for a section of text. Can be styled from CSS using the "-rtfx-underline-cap" property. Note that the underline properties specified here are orthogonal to the | |
| underlineColorProperty | back to summary |
|---|---|
| public ObjectProperty The underline color of the section of text. Note that this is actually a Paint type, so you can specify gradient or image fills rather than a flat colour. But due to line wrapping, it's possible that the fill may be used multiple times on separate lines even for the same segment of text. Can be styled from CSS using the "-rtfx-underline-color" property (not to be confused with JavaFX's separate "-fx-underline" property).Note that the underline properties specified here are orthogonal to the | |
| underlineDashArrayProperty | back to summary |
|---|---|
| public ObjectProperty The dash array used for drawing the underline for a section of text. Can be styled from CSS using the "-rtfx-underline-dash-array" property. Note that the underline properties specified here are orthogonal to the | |
| underlineDoubleGapProperty | back to summary |
|---|---|
| public ObjectProperty The size of the gap between two parallel underline lines or wave forms. If null or zero, the underline will be a single line or wave form. Can be styled from CSS using the "-rtfx-underline-double-gap" property. Note that the underline properties specified here are orthogonal to the | |
| underlineOffsetProperty | back to summary |
|---|---|
| public ObjectProperty The offset of the underline for a section of text. If null or zero, the underline will be drawn along the baseline of the text. Can be styled from CSS using the "-rtfx-underline-offset" property. Note that the underline properties specified here are orthogonal to the | |
| underlineWaveRadiusProperty | back to summary |
|---|---|
| public ObjectProperty The arc radius used to draw a wavy underline. If null or zero, the underline will be a simple line. Can be styled from CSS using the "-rtfx-underline-wave-radius" property. Note that the underline properties specified here are orthogonal to the | |
| underlineWidthProperty | back to summary |
|---|---|
| public ObjectProperty The width of the underline for a section of text. If null or zero, the underline will not be drawn. Can be styled from CSS using the "-rtfx-underline-width" property. Note that the underline properties specified here are orthogonal to the | |
| Modifier and Type | Field and Description |
|---|---|
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final CssMetaData |
| Access | Constructor and Description |
|---|---|
| private |
| BACKGROUND_COLOR | back to summary |
|---|---|
| private static final CssMetaData<TextExt, Paint> BACKGROUND_COLOR | |
| BORDER_COLOR | back to summary |
|---|---|
| private static final CssMetaData<TextExt, Paint> BORDER_COLOR | |
| BORDER_DASH_ARRAY | back to summary |
|---|---|
| private static final CssMetaData<TextExt, Number[]> BORDER_DASH_ARRAY | |
| BORDER_TYPE | back to summary |
|---|---|
| private static final CssMetaData<TextExt, StrokeType> BORDER_TYPE | |
| BORDER_WIDTH | back to summary |
|---|---|
| private static final CssMetaData<TextExt, Number> BORDER_WIDTH | |
| UNDERLINE_CAP | back to summary |
|---|---|
| private static final CssMetaData<TextExt, StrokeLineCap> UNDERLINE_CAP | |
| UNDERLINE_COLOR | back to summary |
|---|---|
| private static final CssMetaData<TextExt, Paint> UNDERLINE_COLOR | |
| UNDERLINE_DASH_ARRAY | back to summary |
|---|---|
| private static final CssMetaData<TextExt, Number[]> UNDERLINE_DASH_ARRAY | |
| UNDERLINE_DOUBLE_GAP | back to summary |
|---|---|
| private static final CssMetaData<TextExt, Number> UNDERLINE_DOUBLE_GAP | |
| UNDERLINE_OFFSET | back to summary |
|---|---|
| private static final CssMetaData<TextExt, Number> UNDERLINE_OFFSET | |
| UNDERLINE_WAVE_RADIUS | back to summary |
|---|---|
| private static final CssMetaData<TextExt, Number> UNDERLINE_WAVE_RADIUS | |
| UNDERLINE_WIDTH | back to summary |
|---|---|
| private static final CssMetaData<TextExt, Number> UNDERLINE_WIDTH | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |