javax.swing.text
Class TabStop

java.lang.Object
  |
  +--javax.swing.text.TabStop
All Implemented Interfaces:
Serializable

public class TabStop
extends Object
implements Serializable

Safe:

See Also:
Serialized Form

Field Summary
static int ALIGN_BAR
          Enabled:
static int ALIGN_CENTER
          Enabled: Characters following tab are positioned such that all following characters up to next tab/newline are centered around the tabs location.
static int ALIGN_DECIMAL
          Enabled: Characters following tab are aligned such that next decimal/tab/newline is at the tab location, very similar to RIGHT_TAB, just includes decimal as additional character to look for.
static int ALIGN_LEFT
          Enabled: Character following tab is positioned at location.
static int ALIGN_RIGHT
          Enabled: Characters following tab are positioned such that all following characters up to next tab/newline end at location.
private  int alignment
          Tab type.
static int LEAD_DOTS
          Enabled:
static int LEAD_EQUALS
          Enabled:
static int LEAD_HYPHENS
          Enabled:
static int LEAD_NONE
          Enabled:
static int LEAD_THICKLINE
          Enabled:
static int LEAD_UNDERLINE
          Enabled:
private  int leader
           
private  float position
          Location, from the left margin, that tab is at.
 
Constructor Summary
TabStop(float pos)
          Enabled: Creates a tab at position pos with a default alignment and default leader.
TabStop(float pos, int align, int leader)
          Enabled: Creates a tab with the specified position pos, alignment align and leader leader.
 
Method Summary
 boolean equals(Object other)
          Suppressed: Returns true if the tabs are equal.
 int getAlignment()
          Enabled: Returns the alignment, as an integer, of the tab.
 int getLeader()
          Enabled: Returns the leader of the tab.
 float getPosition()
          Enabled: Returns the position, as a float, of the tab.
 int hashCode()
          Suppressed: Returns the hashCode for the object.
 String toString()
          Suppressed:
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ALIGN_LEFT

public static final int ALIGN_LEFT
Enabled: Character following tab is positioned at location.


ALIGN_RIGHT

public static final int ALIGN_RIGHT
Enabled: Characters following tab are positioned such that all following characters up to next tab/newline end at location.


ALIGN_CENTER

public static final int ALIGN_CENTER
Enabled: Characters following tab are positioned such that all following characters up to next tab/newline are centered around the tabs location.


ALIGN_DECIMAL

public static final int ALIGN_DECIMAL
Enabled: Characters following tab are aligned such that next decimal/tab/newline is at the tab location, very similar to RIGHT_TAB, just includes decimal as additional character to look for.


ALIGN_BAR

public static final int ALIGN_BAR
Enabled:


LEAD_NONE

public static final int LEAD_NONE
Enabled:


LEAD_DOTS

public static final int LEAD_DOTS
Enabled:


LEAD_HYPHENS

public static final int LEAD_HYPHENS
Enabled:


LEAD_UNDERLINE

public static final int LEAD_UNDERLINE
Enabled:


LEAD_THICKLINE

public static final int LEAD_THICKLINE
Enabled:


LEAD_EQUALS

public static final int LEAD_EQUALS
Enabled:


alignment

private int alignment
Tab type.


position

private float position
Location, from the left margin, that tab is at.


leader

private int leader
Constructor Detail

TabStop

public TabStop(float pos)
Enabled: Creates a tab at position pos with a default alignment and default leader.


TabStop

public TabStop(float pos,
               int align,
               int leader)
Enabled: Creates a tab with the specified position pos, alignment align and leader leader.

Method Detail

getPosition

public float getPosition()
Enabled: Returns the position, as a float, of the tab.

Returns:
the position of the tab

getAlignment

public int getAlignment()
Enabled: Returns the alignment, as an integer, of the tab.

Returns:
the alignment of the tab

getLeader

public int getLeader()
Enabled: Returns the leader of the tab.

Returns:
the leader of the tab

equals

public boolean equals(Object other)
Suppressed: Returns true if the tabs are equal.

Overrides:
equals in class Object
Parameters:
other - the reference object with which to compare.
Returns:
true if the tabs are equal, otherwise false
See Also:
Object.hashCode(), java.util.Hashtable

hashCode

public int hashCode()
Suppressed: Returns the hashCode for the object. This must be defined here to ensure 100% pure.

Overrides:
hashCode in class Object
Returns:
the hashCode for the object
See Also:
java.lang.Object#equals(java.lang.Object), java.util.Hashtable

toString

public String toString()
Suppressed:

Overrides:
toString in class Object
Returns:
a string representation of the object.


comments?