public class ForegroundColorRichStyle extends RichStyle
RichText
instance.RichText.setRichStyle(RichStyle, int, int, RangedRichStyle.Flag)RichStyle.Capability, RichStyle.TypeId| 构造器 | 说明 |
|---|---|
ForegroundColorRichStyle(Color color) |
A constructor used to create a
ForegroundColorRichStyle instance based on the specified color. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Color |
getForegroundColor() |
Obtains the foreground color in this
ForegroundColorRichStyle instance. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCapability, getRichStyleTypeIdpublic ForegroundColorRichStyle(Color color)
ForegroundColorRichStyle instance based on the specified color.color - Indicates the foreground color.IllegalArgumentException - Throws this exception if the specified color is null.public Color getForegroundColor()
ForegroundColorRichStyle instance.