|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.richtext.styledtext.MTabRuler | +--com.ibm.richtext.styledtext.StandardTabRuler
This class is a standard implementation of MTabRuler.
It can have a finite number of client-specified TabStops. After
the client-specified TabStops, all TabStops have type
TabStop.kAuto
and are at the autospace intervals.
TabStop
, Serialized FormConstructor Summary | |
StandardTabRuler()
Create a StandardTabRuler with only auto tabs, with spacing of 36. |
|
StandardTabRuler(int autoSpacing)
Create a StandardTabRuler with only auto tabs, with the given autoSpacing. |
|
StandardTabRuler(TabStop[] tabs,
int autoSpacing)
Create a StandardTabRuler. |
Method Summary | |
int |
autoSpacing()
Return the interval for autotabs. |
boolean |
equals(java.lang.Object o)
Compare this to another Object. |
TabStop |
firstTab()
Return first tab in the ruler. |
TabStop |
nextTab(int position)
Return the first tab in the ruler with fPosition > position. |
void |
readExternal(java.io.ObjectInput in)
|
java.lang.String |
toString()
Return debug information about this tab ruler. |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class com.ibm.richtext.styledtext.MTabRuler |
addTab, containsTab, hashCode, moveTab, removeTab |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StandardTabRuler()
public StandardTabRuler(int autoSpacing)
autoSpacing
- the autoSpacing for this tab rulerpublic StandardTabRuler(TabStop[] tabs, int autoSpacing)
tabs
array. After these tabs all
tabs are auto tabs.tabs
- an array of TabStops. The TabStops in the array must
be in strictly increasing order (of positions), and cannot have
type TabStop.kAuto
.autoSpacing
- the autoSpacing interval to use after the last
client-specified tab.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 TabStop firstTab()
firstTab
in class MTabRuler
public TabStop nextTab(int position)
nextTab
in class MTabRuler
position
- the position of the TabStop returned will be greater than this parameterpublic int autoSpacing()
autoSpacing
in class MTabRuler
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |