|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.richtext.styledtext.TabStop
TabStop represents a position on a tab ruler. Each tab stop has a position, giving its location on the ruler, and one of several types. The type determines how a segment controled by this TabStop is positioned on a line:
kLeading
- the leading edge of the segment is aligned to
the TabStop's positionkCenter
- the segment is centered on this TabStop's
positionkTrailing
- the trailing edge of the segment is aligned to
the TabStop's positionkDecimal
- the first decimal in the segment is aligned to
the TabStop's positionkAuto
- semantically the same as kLeading
.
Used by tab rulers to indicate that all subsequent tab stops
will be at autospaced intervals.
MTabRuler
, Serialized FormField Summary | |
static byte |
kAuto
A TabStop with this type aligns its segment's leading edge to the TabStop's position. |
static byte |
kCenter
A TabStop with this type aligns its segment's center to the TabStop's position. |
static byte |
kDecimal
A TabStop with this type aligns its segment's first decimal to the TabStop's position. |
static byte |
kLeading
A TabStop with this type aligns its segment's leading edge to the TabStop's position. |
static byte |
kTrailing
A TabStop with this type aligns its segment's trailing edge to the TabStop's position. |
Constructor Summary | |
TabStop()
Create a TabStop with position 0 and type kLeading . |
|
TabStop(int position,
byte type)
Create a TabStop with the given position and type. |
Method Summary | |
boolean |
equals(java.lang.Object rhs)
Compare this to another Object. |
int |
getPosition()
Return the position of this TabStop. |
byte |
getType()
Return the type of this TabStop. |
int |
hashCode()
Return the hash code for this TabStop. |
void |
readExternal(java.io.ObjectInput in)
|
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte kLeading
public static final byte kCenter
public static final byte kTrailing
public static final byte kDecimal
public static final byte kAuto
Constructor Detail |
public TabStop()
kLeading
.public TabStop(int position, byte type)
position
- the TabStop's positiontype
- the TabStop's type. Must be one of constants
in this class.Method Detail |
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
public boolean equals(java.lang.Object rhs)
equals
in class java.lang.Object
public int hashCode()
position << type
.hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public byte getType()
public int getPosition()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |