APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.javafx.text

public Class DefaultTabAdvancePolicy

extends Object
implements TabAdvancePolicy
Class Inheritance
All Implemented Interfaces
com.sun.javafx.scene.text.TabAdvancePolicy
Imports
java.util.Arrays, .List, javafx.scene.text.TabStop, .TabStopPolicy, .TextFlow, com.sun.javafx.scene.text.TabAdvancePolicy

This TabAdvancePolicy converts the high level TabStopPolicy to TabAdvancePolicy that the text layout can use.

Field Summary

Modifier and TypeField and Description
private final TextFlow
private final float
private final float[]

Constructor Summary

AccessConstructor and Description
private
DefaultTabAdvancePolicy(TextFlow flow, float[] tabs, float interval)

Method Summary

Modifier and TypeMethod and Description
public float
nextTabStop(float offset, float position)

Implements com.sun.javafx.scene.text.TabAdvancePolicy.nextTabStop.

Provides the next tab stop for the given position.

public static DefaultTabAdvancePolicy
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

flowback to summary
private final TextFlow flow
intervalback to summary
private final float interval
stopsback to summary
private final float[] stops

Constructor Detail

DefaultTabAdvancePolicyback to summary
private DefaultTabAdvancePolicy(TextFlow flow, float[] tabs, float interval)

Method Detail

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

Implements com.sun.javafx.scene.text.TabAdvancePolicy.nextTabStop.

Doc from com.sun.javafx.scene.text.TabAdvancePolicy.nextTabStop.

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

Annotations
@Override
ofback to summary
public static DefaultTabAdvancePolicy of(TextFlow flow, TabStopPolicy p)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override