| java.lang.Object com.ibm.richtext.styledtext.MTabRuler com.ibm.richtext.styledtext.StandardTabRuler
StandardTabRuler | final public class StandardTabRuler extends MTabRuler implements Externalizable(Code) | | 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.
See Also: TabStop |
StandardTabRuler | public StandardTabRuler()(Code) | | Create a StandardTabRuler with only auto tabs, with spacing of 36.
|
StandardTabRuler | public StandardTabRuler(int autoSpacing)(Code) | | Create a StandardTabRuler with only auto tabs, with the
given autoSpacing.
Parameters: autoSpacing - the autoSpacing for this tab ruler |
StandardTabRuler | public StandardTabRuler(TabStop[] tabs, int autoSpacing)(Code) | | Create a StandardTabRuler. The first TabStops on the ruler will be
the TabStops in the tabs array. After these tabs all
tabs are auto tabs.
Parameters: tabs - an array of TabStops. The TabStops in the array mustbe in strictly increasing order (of positions), and cannot havetype TabStop.kAuto . Parameters: autoSpacing - the autoSpacing interval to use after the lastclient-specified tab. |
StandardTabRuler | StandardTabRuler(Vector v, int autoSpacing)(Code) | | Tabs as provided, then autoSpacing after the last tab to eternity. Use this constructor when
munging a ruler, it does no validation on the tabs in the vector. Vector may not be null.
|
StandardTabRuler | StandardTabRuler(MTabRuler ruler)(Code) | | Construct from another ruler. No validation. Ruler may not be null.
|
addTabToRuler | static MTabRuler addTabToRuler(MTabRuler ruler, TabStop tabToAdd)(Code) | | Return a tab ruler identical to the given ruler, except with the
given tab added.
Parameters: ruler - the original ruler. The MTabRuler will be the same asthis except for the additional tab. ruler is not modified. Parameters: tabToAdd - the tab to add to the new tab ruler an MTabRuler resulting from this operation |
autoSpacing | public int autoSpacing()(Code) | | Return the interval for autotabs.
|
equals | public boolean equals(Object o)(Code) | | Compare this to another Object. Returns true if the object
is an MTabRuler with the same autoSpacing and tabs.
|
firstTab | public TabStop firstTab()(Code) | | Return first tab in the ruler. If an autoTab, it is at position zero, and
all subsequent tabs will be autotabs at autoSpacing intervals.
|
moveTabOnRuler | static MTabRuler moveTabOnRuler(MTabRuler ruler, int fromPosition, int toPosition)(Code) | | Return a tab ruler identical to the given ruler, except with the
tab at position fromPosition moved to position
toPosition .
Parameters: ruler - the original ruler. The MTabRuler will be the same asthis except for the moved tab. ruler is not modified. Parameters: fromPosition - the position of the tab to move Parameters: toPosition - the new position of the tab an MTabRuler resulting from this operation |
nextTab | public TabStop nextTab(int position)(Code) | | Return the first tab in the ruler with fPosition > position. If it is an
autotab, it is at an increment of autoSpacing, and all subsequent tabs will be
autotabs at autoSpacing intervals.
Parameters: position - the position of the TabStop returned will be greater than this parameter |
removeTabFromRuler | static MTabRuler removeTabFromRuler(MTabRuler ruler, int position)(Code) | | Return a tab ruler identical to the given ruler, except with the
given tab removed.
Parameters: ruler - the original ruler. The MTabRuler will be the same asthis except for the removed tab. ruler is not modified. Parameters: position - the position of the tab to remove from the new tab ruler an MTabRuler resulting from this operation |
toString | public String toString()(Code) | | Return debug information about this tab ruler.
|
|
|