public class StyledString
extends java.lang.Object
implements java.lang.CharSequence
| Constructor and Description |
|---|
StyledString()
Create a styled string
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendSegment(java.lang.String text,
java.util.List<java.lang.String> styleClass)
Append a new segment with the given text and styleclasses
|
void |
appendSegment(java.lang.String text,
java.lang.String... styleClass)
Append a new segment with the given text and styleclasses
|
char |
charAt(int index) |
javafx.collections.ObservableList<StyledStringSegment> |
getSegmentList() |
int |
length() |
java.lang.CharSequence |
subSequence(int start,
int end) |
java.lang.String |
toString() |
public int length()
length in interface java.lang.CharSequencepublic char charAt(int index)
charAt in interface java.lang.CharSequencepublic java.lang.CharSequence subSequence(int start,
int end)
subSequence in interface java.lang.CharSequencepublic java.lang.String toString()
toString in interface java.lang.CharSequencetoString in class java.lang.Objectpublic javafx.collections.ObservableList<StyledStringSegment> getSegmentList()
public void appendSegment(java.lang.String text,
java.lang.String... styleClass)
text - the textstyleClass - the style classesStyledStringSegment(String, String...)public void appendSegment(java.lang.String text,
java.util.List<java.lang.String> styleClass)
text - the textstyleClass - the style classesStyledStringSegment(String, List)