public class HorizontalScaleRichStyle extends RichStyle
RichText
instance.RichText.setRichStyle(RichStyle, int, int, RangedRichStyle.Flag)RichStyle.Capability, RichStyle.TypeId| 构造器 | 说明 |
|---|---|
HorizontalScaleRichStyle(float ratio) |
A constructor used to create a
HorizontalScaleRichStyle instance based on the specified ratio. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
float |
getRatio() |
Obtains the horizontal scale ratio of the text in this
HorizontalScaleRichStyle instance. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCapability, getRichStyleTypeIdpublic HorizontalScaleRichStyle(float ratio)
HorizontalScaleRichStyle instance based on the specified ratio.ratio - Indicates the horizontal scale ratio of the text.IllegalArgumentException - Throws this exception if the specified ratio is less than 0.public float getRatio()
HorizontalScaleRichStyle instance.