| |
|
| java.lang.Object com.ibm.richtext.styledtext.TabStop
TabStop | final public class TabStop implements Externalizable(Code) | | 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 position
kCenter - the segment is centered on this TabStop's
position
kTrailing - the trailing edge of the segment is aligned to
the TabStop's position
kDecimal - the first decimal in the segment is aligned to
the TabStop's position
kAuto - semantically the same as kLeading .
Used by tab rulers to indicate that all subsequent tab stops
will be at autospaced intervals.
See Also: MTabRuler |
Field Summary | |
final static String | COPYRIGHT | final public static byte | kAuto A TabStop with this type aligns its segment's leading edge
to the TabStop's position. | final public static byte | kCenter A TabStop with this type aligns its segment's center
to the TabStop's position. | final public static byte | kDecimal A TabStop with this type aligns its segment's first decimal
to the TabStop's position. | final public static byte | kLeading A TabStop with this type aligns its segment's leading edge
to the TabStop's position. | final public static byte | kTrailing A TabStop with this type aligns its segment's trailing edge
to the TabStop's position. |
Constructor Summary | |
public | TabStop() Create a TabStop with position 0 and type kLeading . | public | TabStop(int position, byte type) Create a TabStop with the given position and type.
Parameters: position - the TabStop's position Parameters: type - the TabStop's type. |
kAuto | final public static byte kAuto(Code) | | A TabStop with this type aligns its segment's leading edge
to the TabStop's position. After a TabStop of this type,
all tabs are at autospace intervals. Usually, clients will
not construct TabStops with this type.
|
kCenter | final public static byte kCenter(Code) | | A TabStop with this type aligns its segment's center
to the TabStop's position.
|
kDecimal | final public static byte kDecimal(Code) | | A TabStop with this type aligns its segment's first decimal
to the TabStop's position.
|
kLeading | final public static byte kLeading(Code) | | A TabStop with this type aligns its segment's leading edge
to the TabStop's position.
|
kTrailing | final public static byte kTrailing(Code) | | A TabStop with this type aligns its segment's trailing edge
to the TabStop's position.
|
TabStop | public TabStop()(Code) | | Create a TabStop with position 0 and type kLeading .
|
TabStop | public TabStop(int position, byte type)(Code) | | Create a TabStop with the given position and type.
Parameters: position - the TabStop's position Parameters: type - the TabStop's type. Must be one of constantsin this class. |
equals | public boolean equals(Object rhs)(Code) | | Compare this to another Object. TabStops are equal if
their position and type are the same.
|
getPosition | public int getPosition()(Code) | | Return the position of this TabStop.
|
getType | public byte getType()(Code) | | Return the type of this TabStop. Will be one of the constants
in this class.
|
hashCode | public int hashCode()(Code) | | Return the hash code for this TabStop. The hash code is
position << type .
|
|
|
|