public class TabStopsRichStyle extends RichStyle
RichText instance.RichText.setRichStyle(RichStyle, int, int, RangedRichStyle.Flag)RichStyle.Capability, RichStyle.TypeId| 构造器 | 说明 |
|---|---|
TabStopsRichStyle(int defaultTabStop) |
A constructor used to create a
TabStopsRichStyle instance based on the defaultTabStop. |
TabStopsRichStyle(List<Integer> tabStops,
int defaultTabStop) |
A constructor used to create a
TabStopsRichStyle instance based on the specified tabStops
and defaultTabStop. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getDefaultTabStop() |
Obtains the position of the default tab stop.
|
List<Integer> |
getTabStops() |
Obtains an array of tab stops.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCapability, getRichStyleTypeIdpublic TabStopsRichStyle(int defaultTabStop)
TabStopsRichStyle instance based on the defaultTabStop.defaultTabStop - Indicates the position of the default tab stop, in pixels. For example, if
defaultTabStop is set to 100, the position of the tab stop is an integer multiple of
100, such as 100, 200, and so on.IllegalArgumentException - Throws this exception if the defaultTabStop is less than or equal
to 0.public TabStopsRichStyle(List<Integer> tabStops, int defaultTabStop)
TabStopsRichStyle instance based on the specified tabStops
and defaultTabStop.tabStops - Indicates an array of tab stops, in pixels. If the actual number of tab stops in the text is
greater than that in the array, the extra tab stops are treated as the defaultTabStop. Note
that the values in the array must be in ascending order, for example, 50,150,300.defaultTabStop - Indicates the position of the default tab stop, in pixels. For example, if
defaultTabStop is set to 100, the position of the tab stop is an integer multiple of
100, such as 100, 200, and so on.IllegalArgumentException - Throws this exception if the specified tabStops is null or the
specified defaultTabStop is less than or equal to 0.