public class TextExt
extends javafx.scene.text.Text
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 Text.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 Text.underlineProperty()
.
Type | Property and Description |
---|---|
javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> |
backgroundColor
The background color of the section of text.
|
javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> |
borderStrokeColor
The border stroke color of the section of text.
|
javafx.beans.property.ObjectProperty<java.lang.Number[]> |
borderStrokeDashArray
The dash array used for drawing the border for a section of text.
|
javafx.beans.property.ObjectProperty<javafx.scene.shape.StrokeType> |
borderStrokeType
The stroke type of the border stroke.
|
javafx.beans.property.ObjectProperty<java.lang.Number> |
borderStrokeWidth
The width of the border stroke.
|
javafx.beans.property.ObjectProperty<javafx.scene.shape.StrokeLineCap> |
underlineCap
The end cap style used for drawing each dash in a dashed underline for a section of text.
|
javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> |
underlineColor
The underline color of the section of text.
|
javafx.beans.property.ObjectProperty<java.lang.Number[]> |
underlineDashArray
The dash array used for drawing the underline for a section of text.
|
javafx.beans.property.ObjectProperty<java.lang.Number> |
underlineWidth
The width of the underline for a section of text.
|
baselineOffset, boundsType, font, fontSmoothingType, impl_caretBias, impl_caretPosition, impl_caretShape, impl_selectionEnd, impl_selectionFill, impl_selectionShape, impl_selectionStart, lineSpacing, strikethrough, textAlignment, textOrigin, text, underline, wrappingWidth, x, y
fill, smooth, strokeDashOffset, strokeLineCap, strokeLineJoin, strokeMiterLimit, stroke, strokeType, strokeWidth
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, impl_showMnemonics, impl_treeVisible, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, visible
Constructor and Description |
---|
TextExt() |
TextExt(java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> |
backgroundColorProperty()
The background color of the section of text.
|
javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> |
borderStrokeColorProperty()
The border stroke color of the section of text.
|
javafx.beans.property.ObjectProperty<java.lang.Number[]> |
borderStrokeDashArrayProperty()
The dash array used for drawing the border for a section of text.
|
javafx.beans.property.ObjectProperty<javafx.scene.shape.StrokeType> |
borderStrokeTypeProperty()
The stroke type of the border stroke.
|
javafx.beans.property.ObjectProperty<java.lang.Number> |
borderStrokeWidthProperty()
The width of the border stroke.
|
javafx.scene.paint.Paint |
getBackgroundColor()
Gets the value of the property backgroundColor.
|
javafx.scene.paint.Paint |
getBorderStrokeColor()
Gets the value of the property borderStrokeColor.
|
java.lang.Number[] |
getBorderStrokeDashArray()
Gets the value of the property borderStrokeDashArray.
|
javafx.scene.shape.StrokeType |
getBorderStrokeType()
Gets the value of the property borderStrokeType.
|
java.lang.Number |
getBorderStrokeWidth()
Gets the value of the property borderStrokeWidth.
|
java.util.List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>> |
getCssMetaData() |
javafx.scene.shape.StrokeLineCap |
getUnderlineCap()
Gets the value of the property underlineCap.
|
javafx.scene.paint.Paint |
getUnderlineColor()
Gets the value of the property underlineColor.
|
java.lang.Number[] |
getUnderlineDashArray()
Gets the value of the property underlineDashArray.
|
java.lang.Number |
getUnderlineWidth()
Gets the value of the property underlineWidth.
|
void |
setBackgroundColor(javafx.scene.paint.Paint fill)
Sets the value of the property backgroundColor.
|
void |
setBorderStrokeColor(javafx.scene.paint.Paint fill)
Sets the value of the property borderStrokeColor.
|
void |
setBorderStrokeDashArray(java.lang.Number[] array)
Sets the value of the property borderStrokeDashArray.
|
void |
setBorderStrokeType(javafx.scene.shape.StrokeType type)
Sets the value of the property borderStrokeType.
|
void |
setBorderStrokeWidth(java.lang.Number width)
Sets the value of the property borderStrokeWidth.
|
void |
setUnderlineCap(javafx.scene.shape.StrokeLineCap cap)
Sets the value of the property underlineCap.
|
void |
setUnderlineColor(javafx.scene.paint.Paint fill)
Sets the value of the property underlineColor.
|
void |
setUnderlineDashArray(java.lang.Number[] dashArray)
Sets the value of the property underlineDashArray.
|
void |
setUnderlineWidth(java.lang.Number width)
Sets the value of the property underlineWidth.
|
javafx.beans.property.ObjectProperty<javafx.scene.shape.StrokeLineCap> |
underlineCapProperty()
The end cap style used for drawing each dash in a dashed underline for a section of text.
|
javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> |
underlineColorProperty()
The underline color of the section of text.
|
javafx.beans.property.ObjectProperty<java.lang.Number[]> |
underlineDashArrayProperty()
The dash array used for drawing the underline for a section of text.
|
javafx.beans.property.ObjectProperty<java.lang.Number> |
underlineWidthProperty()
The width of the underline for a section of text.
|
baselineOffsetProperty, boundsTypeProperty, fontProperty, fontSmoothingTypeProperty, getBaselineOffset, getBoundsType, getClassCssMetaData, getFont, getFontSmoothingType, getImpl_caretPosition, getImpl_caretShape, getImpl_selectionEnd, getImpl_selectionShape, getImpl_selectionStart, getLineSpacing, getText, getTextAlignment, getTextOrigin, getWrappingWidth, getX, getY, impl_caretBiasProperty, impl_caretPositionProperty, impl_caretShapeProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_configShape, impl_createPeer, impl_displaySoftwareKeyboard, impl_geomChanged, impl_getRangeShape, impl_getUnderlineShape, impl_hitTestChar, impl_selectionEndProperty, impl_selectionFillProperty, impl_selectionShapeProperty, impl_selectionStartProperty, impl_updatePeer, isImpl_caretBias, isStrikethrough, isUnderline, lineSpacingProperty, queryAccessibleAttribute, setBoundsType, setFont, setFontSmoothingType, setImpl_caretBias, setImpl_caretPosition, setImpl_selectionEnd, setImpl_selectionStart, setLineSpacing, setStrikethrough, setText, setTextAlignment, setTextOrigin, setUnderline, setWrappingWidth, setX, setY, strikethroughProperty, textAlignmentProperty, textOriginProperty, textProperty, toString, underlineProperty, usesMirroring, wrappingWidthProperty, xProperty, yProperty
fillProperty, getFill, getStroke, getStrokeDashArray, getStrokeDashOffset, getStrokeLineCap, getStrokeLineJoin, getStrokeMiterLimit, getStrokeType, getStrokeWidth, impl_cssGetFillInitialValue, impl_cssGetStrokeInitialValue, impl_markDirty, impl_processMXNode, impl_setShapeChangeListener, intersect, isSmooth, setFill, setSmooth, setStroke, setStrokeDashOffset, setStrokeLineCap, setStrokeLineJoin, setStrokeMiterLimit, setStrokeType, setStrokeWidth, smoothProperty, strokeDashOffsetProperty, strokeLineCapProperty, strokeLineJoinProperty, strokeMiterLimitProperty, strokeProperty, strokeTypeProperty, strokeWidthProperty, subtract, union
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_cssGetFocusTraversableInitialValue, impl_findStyles, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_notifyLayoutBoundsChanged, impl_pickNode, impl_pickNodeLocal, impl_processCSS, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isResizable, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookup, lookupAll, managedProperty, maxHeight, maxWidth, minHeight, minWidth, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, prefHeight, prefWidth, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resize, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, translateXProperty, translateYProperty, translateZProperty, visibleProperty
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> backgroundColorProperty
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.getBackgroundColor()
,
setBackgroundColor(Paint)
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> borderStrokeColorProperty
borderStrokeWidthProperty()
a positive value
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-color" property.public javafx.beans.property.ObjectProperty<java.lang.Number> borderStrokeWidthProperty
borderStrokeColorProperty()
for more details.
Can be styled from CSS using the "-rtfx-border-stroke-width" property.public javafx.beans.property.ObjectProperty<javafx.scene.shape.StrokeType> borderStrokeTypeProperty
borderStrokeColorProperty()
for more details.
Can be styled from CSS using the "-rtfx-border-stroke-type" property.public javafx.beans.property.ObjectProperty<java.lang.Number[]> borderStrokeDashArrayProperty
borderStrokeColorProperty()
for more details.
Can be styled from CSS using the "-rtfx-border-stroke-dash-array" property.public javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> underlineColorProperty
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 Text.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 Text.underlineProperty()
.
getUnderlineColor()
,
setUnderlineColor(Paint)
public javafx.beans.property.ObjectProperty<java.lang.Number> underlineWidthProperty
Note that the underline properties specified here are orthogonal to the Text.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 Text.underlineProperty()
.
getUnderlineWidth()
,
setUnderlineWidth(Number)
public javafx.beans.property.ObjectProperty<java.lang.Number[]> underlineDashArrayProperty
Note that the underline properties specified here are orthogonal to the Text.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 Text.underlineProperty()
.
public javafx.beans.property.ObjectProperty<javafx.scene.shape.StrokeLineCap> underlineCapProperty
Note that the underline properties specified here are orthogonal to the Text.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 Text.underlineProperty()
.
getUnderlineCap()
,
setUnderlineCap(StrokeLineCap)
public java.util.List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>> getCssMetaData()
getCssMetaData
in interface javafx.css.Styleable
getCssMetaData
in class javafx.scene.text.Text
public javafx.scene.paint.Paint getBackgroundColor()
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.public void setBackgroundColor(javafx.scene.paint.Paint fill)
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.public javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> backgroundColorProperty()
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.getBackgroundColor()
,
setBackgroundColor(Paint)
public javafx.scene.paint.Paint getBorderStrokeColor()
borderStrokeWidthProperty()
a positive value
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-color" property.public void setBorderStrokeColor(javafx.scene.paint.Paint fill)
borderStrokeWidthProperty()
a positive value
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-color" property.public javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> borderStrokeColorProperty()
borderStrokeWidthProperty()
a positive value
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-color" property.public java.lang.Number getBorderStrokeWidth()
borderStrokeColorProperty()
for more details.
Can be styled from CSS using the "-rtfx-border-stroke-width" property.public void setBorderStrokeWidth(java.lang.Number width)
borderStrokeColorProperty()
for more details.
Can be styled from CSS using the "-rtfx-border-stroke-width" property.public javafx.beans.property.ObjectProperty<java.lang.Number> borderStrokeWidthProperty()
borderStrokeColorProperty()
for more details.
Can be styled from CSS using the "-rtfx-border-stroke-width" property.public javafx.scene.shape.StrokeType getBorderStrokeType()
borderStrokeColorProperty()
for more details.
Can be styled from CSS using the "-rtfx-border-stroke-type" property.public void setBorderStrokeType(javafx.scene.shape.StrokeType type)
borderStrokeColorProperty()
for more details.
Can be styled from CSS using the "-rtfx-border-stroke-type" property.public javafx.beans.property.ObjectProperty<javafx.scene.shape.StrokeType> borderStrokeTypeProperty()
borderStrokeColorProperty()
for more details.
Can be styled from CSS using the "-rtfx-border-stroke-type" property.public java.lang.Number[] getBorderStrokeDashArray()
borderStrokeColorProperty()
for more details.
Can be styled from CSS using the "-rtfx-border-stroke-dash-array" property.public void setBorderStrokeDashArray(java.lang.Number[] array)
borderStrokeColorProperty()
for more details.
Can be styled from CSS using the "-rtfx-border-stroke-dash-array" property.public javafx.beans.property.ObjectProperty<java.lang.Number[]> borderStrokeDashArrayProperty()
borderStrokeColorProperty()
for more details.
Can be styled from CSS using the "-rtfx-border-stroke-dash-array" property.public javafx.scene.paint.Paint getUnderlineColor()
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 Text.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 Text.underlineProperty()
.
public void setUnderlineColor(javafx.scene.paint.Paint fill)
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 Text.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 Text.underlineProperty()
.
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> underlineColorProperty()
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 Text.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 Text.underlineProperty()
.
getUnderlineColor()
,
setUnderlineColor(Paint)
public java.lang.Number getUnderlineWidth()
Note that the underline properties specified here are orthogonal to the Text.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 Text.underlineProperty()
.
public void setUnderlineWidth(java.lang.Number width)
Note that the underline properties specified here are orthogonal to the Text.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 Text.underlineProperty()
.
public javafx.beans.property.ObjectProperty<java.lang.Number> underlineWidthProperty()
Note that the underline properties specified here are orthogonal to the Text.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 Text.underlineProperty()
.
getUnderlineWidth()
,
setUnderlineWidth(Number)
public java.lang.Number[] getUnderlineDashArray()
Note that the underline properties specified here are orthogonal to the Text.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 Text.underlineProperty()
.
public void setUnderlineDashArray(java.lang.Number[] dashArray)
Note that the underline properties specified here are orthogonal to the Text.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 Text.underlineProperty()
.
public javafx.beans.property.ObjectProperty<java.lang.Number[]> underlineDashArrayProperty()
Note that the underline properties specified here are orthogonal to the Text.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 Text.underlineProperty()
.
public javafx.scene.shape.StrokeLineCap getUnderlineCap()
Note that the underline properties specified here are orthogonal to the Text.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 Text.underlineProperty()
.
public void setUnderlineCap(javafx.scene.shape.StrokeLineCap cap)
Note that the underline properties specified here are orthogonal to the Text.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 Text.underlineProperty()
.
public javafx.beans.property.ObjectProperty<javafx.scene.shape.StrokeLineCap> underlineCapProperty()
Note that the underline properties specified here are orthogonal to the Text.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 Text.underlineProperty()
.
getUnderlineCap()
,
setUnderlineCap(StrokeLineCap)