APIdia Launch Partner
Top Description Methods
javax.swing.text

public Interface TabExpander

Known Direct Implementers
javax.swing.text.WrappedPlainView, javax.swing.text.ParagraphView, javax.swing.text.PlainView

Simple interface to allow for different types of implementations of tab expansion.
Author
Timothy Prinzing

Method Summary

Modifier and TypeMethod and Description
public float

Returns:

the next tab stop >= 0
nextTabStop
(float
the position in points >= 0
x
,
int
the position within the text stream that the tab occurred at >= 0.
tabOffset
)

Returns the next tab stop position given a reference position.

Method Detail

nextTabStopback to summary
public float nextTabStop(float x, int tabOffset)

Returns the next tab stop position given a reference position. Values are expressed in points.

Parameters
x:float

the position in points >= 0

tabOffset:int

the position within the text stream that the tab occurred at >= 0.

Returns:float

the next tab stop >= 0