public class RangedRichStyle extends Object
| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
RangedRichStyle.Flag |
Defines the inclusion relationship of a rich style applied to rich text.
|
| 构造器 | 说明 |
|---|---|
RangedRichStyle(int start,
int end,
RangedRichStyle.Flag includeFlag,
RichStyle richStyle) |
A constructor used to create a
RangedRichStyle instance with the specified data. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getEnd() |
Obtains the end of the rich text to which the rich style is applied.
|
RangedRichStyle.Flag |
getIncludeFlag() |
Obtains the inclusion relationship for the rich style.
|
RichStyle |
getRichStyle() |
Obtains the rich style of this
RangedRichStyle instance. |
int |
getStart() |
Obtains the start of the rich text to which the rich style is applied.
|
void |
setEnd(int end) |
Sets the end of the rich text to which the rich style is applied.
|
void |
setIncludeFlag(RangedRichStyle.Flag flag) |
Sets the inclusion relationship for the rich style.
|
void |
setRichStyle(RichStyle richStyle) |
Sets a rich style for this
RangedRichStyle instance. |
void |
setStart(int start) |
Sets the start of the rich text to which the rich style is applied.
|
public RangedRichStyle(int start,
int end,
RangedRichStyle.Flag includeFlag,
RichStyle richStyle)
RangedRichStyle instance with the specified data.start - Indicates the start of the rich text to which the rich style is applied.end - Indicates the end of the rich text to which the rich style is applied.includeFlag - Indicates the inclusion relationship for the start and end of the rich text.richStyle - Indicates the rich style of the rich text.public RichStyle getRichStyle()
RangedRichStyle instance.public int getStart()
public int getEnd()
public RangedRichStyle.Flag getIncludeFlag()
public void setEnd(int end)
end - Specifies the end of the rich text to set.public void setStart(int start)
start - Specifies the start of the rich text to set.public void setIncludeFlag(RangedRichStyle.Flag flag)
flag - Specifies the inclusion relationship to set.public void setRichStyle(RichStyle richStyle)
RangedRichStyle instance.richStyle - Specifies the rich style to set.