|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.richtext.styledtext.MTabRuler
This interface represents a sequence of TabStops, ordered by position.
The first
TabStop in the ruler can be obtained with the firstTab
method; subsequent TabStops are obtained with the nextTab
method.
If a TabStop with type TabStop.kAuto
is returned, all tabs
after that TabStop will also have type TabStop.kAuto
, and
their positions will be multiples of autoSpacing
.
TabStop
Constructor Summary | |
MTabRuler()
|
Method Summary | |
MTabRuler |
addTab(TabStop tabToAdd)
Return a tab ruler identical to this ruler, except with the given tab added. |
abstract int |
autoSpacing()
Return the interval for autotabs. |
boolean |
containsTab(TabStop tabToTest)
Return true if this tab ruler contains the given tab. |
abstract TabStop |
firstTab()
Return first tab in the ruler. |
int |
hashCode()
Compute the hashCode for this ruler. |
MTabRuler |
moveTab(int fromPosition,
int toPosition)
Return a tab ruler identical to this ruler, except with the tab at position fromPosition moved to position
toPosition . |
abstract TabStop |
nextTab(int position)
Return the first tab in the ruler with fPosition > position. |
MTabRuler |
removeTab(int position)
Return a tab ruler identical to the given ruler, except with the tab at the given position removed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MTabRuler()
Method Detail |
public abstract TabStop firstTab()
public abstract TabStop nextTab(int position)
public abstract int autoSpacing()
public final int hashCode()
hashCode
in class java.lang.Object
public boolean containsTab(TabStop tabToTest)
tabToTest
- the tab to search fortabToTest
public MTabRuler addTab(TabStop tabToAdd)
tabToAdd
- the tab to add to the new tab rulerpublic MTabRuler removeTab(int position)
position
- the position of the tab to remove from the new tab rulerpublic MTabRuler moveTab(int fromPosition, int toPosition)
fromPosition
moved to position
toPosition
. This ruler is not modified.fromPosition
- the position of the tab to movetoPosition
- the new position of the tab
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |