javax.swing.text
public class TabStop extends Object implements Serializable
Field Summary | |
---|---|
static int | ALIGN_BAR |
static int | ALIGN_CENTER |
static int | ALIGN_DECIMAL |
static int | ALIGN_LEFT |
static int | ALIGN_RIGHT |
static int | LEAD_DOTS |
static int | LEAD_EQUALS |
static int | LEAD_HYPHENS |
static int | LEAD_NONE |
static int | LEAD_THICKLINE |
static int | LEAD_UNDERLINE |
Constructor Summary | |
---|---|
TabStop(float pos)
Creates a new TabStop for the specified tab position.
| |
TabStop(float pos, int align, int leader)
Creates a new TabStop with the specified attributes.
|
Method Summary | |
---|---|
boolean | equals(Object other)
Tests this TabStop for equality with an arbitrary object.
|
int | getAlignment()
Returns the tab alignment. |
int | getLeader()
Returns the leader type. |
float | getPosition()
Returns the tab position.
|
int | hashCode()
Returns a hash code for this TabStop .
|
String | toString()
Returns a string describing this TabStop .
|
TabStop
for the specified tab position.
Parameters: pos the tab position.
TabStop
with the specified attributes.
Parameters: pos the tab position. align the alignment (one of {@link #ALIGN_LEFT}, {@link #ALIGN_CENTER}, {@link #ALIGN_RIGHT}, {@link #ALIGN_DECIMAL} or {@link #ALIGN_BAR}). leader the leader (one of {@link #LEAD_NONE}, {@link #LEAD_DOTS}, {@link #LEAD_EQUALS}, {@link #LEAD_HYPHENS}, {@link #LEAD_THICKLINE} or {@link #LEAD_UNDERLINE}).
TabStop
for equality with an arbitrary object.
Parameters: other the other object (null
permitted).
Returns: true
if this TabStop
is equal to
the specified object, and false
otherwise.
Returns: The tab alignment.
Returns: The leader type.
Returns: The tab position.
TabStop
.
Returns: A hash code.
TabStop
.
Returns: A string describing this TabStop
.