APIdia Launch Partner
Top Description Methods
com.sun.javafx.scene.text

public Interface TabAdvancePolicy

Known Direct Implementers
com.sun.javafx.text.DefaultTabAdvancePolicy, com.sun.javafx.text.FixedTabAdvancePolicy

TabAdvancePolicy provides the next tab advance for any given position within the TextLayout.

Method Summary

Modifier and TypeMethod and Description
public float

Returns:

the next tab stop
nextTabStop
(float
the offset of the text layout relative to the owner Node edge
offset
,
float
the current position
position
)

Provides the next tab stop for the given position.

Method Detail

nextTabStopback to summary
public float nextTabStop(float offset, float position)

Provides the next tab stop for the given position. A value of 0 or less indicates that there are no more stops.

Parameters
offset:float

the offset of the text layout relative to the owner Node edge

position:float

the current position

Returns:float

the next tab stop