Class TabStopPolicy
java.lang.Object
javafx.scene.text.TabStopPolicy
The TabStopPolicy determines the tab stop positions within the text layout.
- Since:
- 25
-
Property Summary
PropertiesTypePropertyDescriptionfinal DoubleProperty
Specifies the default tab stop interval for tabs beyond the last stop provided bytabStops()
. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newTabStopPolicy
instance, with an empty list of stops. -
Method Summary
Modifier and TypeMethodDescriptionfinal DoubleProperty
Specifies the default tab stop interval for tabs beyond the last stop provided bytabStops()
.final double
Gets the value of thedefaultInterval
property.final void
setDefaultInterval
(double value) Sets the value of thedefaultInterval
property.final ObservableList
<TabStop> tabStops()
The list of tab stops.
-
Property Details
-
defaultInterval
Specifies the default tab stop interval for tabs beyond the last stop provided bytabStops()
. This is a fixed repeating distance (in pixels) to the next tab stop computed at regular intervals relative to the leading edge of theTextFlow
node.A value of less than or equal 0 disables the default interval.
- Default value:
- 0
- See Also:
-
-
Constructor Details
-
TabStopPolicy
public TabStopPolicy()Constructs a newTabStopPolicy
instance, with an empty list of stops.
-
-
Method Details
-
tabStops
The list of tab stops.- Returns:
- the non-null list of tab stops
-
defaultIntervalProperty
Specifies the default tab stop interval for tabs beyond the last stop provided bytabStops()
. This is a fixed repeating distance (in pixels) to the next tab stop computed at regular intervals relative to the leading edge of theTextFlow
node.A value of less than or equal 0 disables the default interval.
- Default value:
- 0
- Returns:
- the default tab interval property
- See Also:
-
getDefaultInterval
public final double getDefaultInterval()Gets the value of thedefaultInterval
property.- Property description:
- Specifies the default tab stop interval for tabs beyond the last stop provided
by
tabStops()
. This is a fixed repeating distance (in pixels) to the next tab stop computed at regular intervals relative to the leading edge of theTextFlow
node.A value of less than or equal 0 disables the default interval.
- Default value:
- 0
- Returns:
- the value of the
defaultInterval
property - See Also:
-
setDefaultInterval
public final void setDefaultInterval(double value) Sets the value of thedefaultInterval
property.- Property description:
- Specifies the default tab stop interval for tabs beyond the last stop provided
by
tabStops()
. This is a fixed repeating distance (in pixels) to the next tab stop computed at regular intervals relative to the leading edge of theTextFlow
node.A value of less than or equal 0 disables the default interval.
- Default value:
- 0
- Parameters:
value
- the value for thedefaultInterval
property- See Also:
-