public class TextRange extends Object
AbstractStyledTextContent
to split styled text into simple renderable pieces.Modifier and Type | Field and Description |
---|---|
StyleRange |
styleRange
Text part style.
|
String |
text
Text part.
|
Constructor and Description |
---|
TextRange(String text)
Constructs new TextRange with empty style.
|
TextRange(String text,
StyleRange styleRange)
Constructs new TextRange with the specified style.
|
Modifier and Type | Method and Description |
---|---|
StyleRange |
getStyleRange()
Returns text part style.
|
String |
getText()
Returns text part.
|
@Nullable public final StyleRange styleRange
public TextRange(@NotNull String text)
text
- text partpublic TextRange(@NotNull String text, @Nullable StyleRange styleRange)
text
- text partstyleRange
- text part style@Nullable public StyleRange getStyleRange()
Copyright © 2020. All rights reserved.