Java Reference
In-Depth Information
■
Note
Although theoretically it can be specified, the
leader
argument to the
TabStop
constructor is
currently ignored by the predefined text components.
TabStop Properties
Table 16-5 displays the three properties of
TabStop
, each initialized by the constructor.
Table 16-5.
TabStop Properties
Property Name
Data Type
Access
alignment
int
Read-only
leader
int
Read-only
position
int
Read-only
Four alignment settings are specified by the five constants listed in Table 16-6. Figure 16-5
shows how the different settings are displayed.
Table 16-6.
TabStop Alignment Settings
Alignment
Description
ALIGN_BAR
Starts at tab position
ALIGN_LEFT
Starts at tab position
ALIGN_CENTER
Centers over tab position
ALIGN_DECIMAL
Places decimal point at tab position
ALIGN_RIGHT
Ends at tab position
Figure 16-5.
TabStop alignment
■
Note
Although the
ALIGN_BAR
and
ALIGN_LEFT
are technically different constants, their alignment
setting currently yields the same result. They are defined per the Rich Text Format (RTF) specification.