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 DoublePropertySpecifies the default tab stop interval for tabs beyond the last stop provided bytabStops(). -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newTabStopPolicyinstance, with an empty list of stops. -
Method Summary
Modifier and TypeMethodDescriptionfinal DoublePropertySpecifies the default tab stop interval for tabs beyond the last stop provided bytabStops().final doubleGets the value of thedefaultIntervalproperty.final voidsetDefaultInterval(double value) Sets the value of thedefaultIntervalproperty.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 theTextFlownode.A value of less than or equal 0 disables the default interval.
- Default value:
- 0
- See Also:
-
-
Constructor Details
-
TabStopPolicy
public TabStopPolicy()Constructs a newTabStopPolicyinstance, 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 theTextFlownode.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 thedefaultIntervalproperty.- 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 theTextFlownode.A value of less than or equal 0 disables the default interval.
- Default value:
- 0
- Returns:
- the value of the
defaultIntervalproperty - See Also:
-
setDefaultInterval
public final void setDefaultInterval(double value) Sets the value of thedefaultIntervalproperty.- 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 theTextFlownode.A value of less than or equal 0 disables the default interval.
- Default value:
- 0
- Parameters:
value- the value for thedefaultIntervalproperty- See Also:
-