public class AttributedString extends AttributedCharSequence
Modifier and Type | Field and Description |
---|---|
static AttributedString |
EMPTY |
static AttributedString |
NEWLINE |
Constructor and Description |
---|
AttributedString(CharSequence str) |
AttributedString(CharSequence str,
AttributedStyle s) |
AttributedString(CharSequence str,
int start,
int end) |
AttributedString(CharSequence str,
int start,
int end,
AttributedStyle s) |
Modifier and Type | Method and Description |
---|---|
protected char[] |
buffer() |
boolean |
equals(Object o) |
static AttributedString |
fromAnsi(String ansi) |
int |
hashCode() |
static AttributedString |
join(AttributedString delimiter,
AttributedString... elements) |
static AttributedString |
join(AttributedString delimiter,
Iterable<AttributedString> elements) |
int |
length() |
protected int |
offset() |
static String |
stripAnsi(String ansi) |
AttributedStyle |
styleAt(int index) |
AttributedString |
styleMatches(Pattern pattern,
AttributedStyle style) |
AttributedString |
subSequence(int start,
int end) |
charAt, codePointAt, codePointBefore, codePointCount, columnLength, columnSplitLength, columnSplitLength, columnSubSequence, contains, isHidden, runLimit, runStart, substring, toAnsi, toAnsi, toAttributedString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
chars, codePoints
public static final AttributedString EMPTY
public static final AttributedString NEWLINE
public AttributedString(CharSequence str)
public AttributedString(CharSequence str, int start, int end)
public AttributedString(CharSequence str, AttributedStyle s)
public AttributedString(CharSequence str, int start, int end, AttributedStyle s)
public static AttributedString fromAnsi(String ansi)
protected char[] buffer()
buffer
in class AttributedCharSequence
protected int offset()
offset
in class AttributedCharSequence
public int length()
public AttributedStyle styleAt(int index)
styleAt
in class AttributedCharSequence
public AttributedString subSequence(int start, int end)
subSequence
in interface CharSequence
subSequence
in class AttributedCharSequence
public AttributedString styleMatches(Pattern pattern, AttributedStyle style)
public static AttributedString join(AttributedString delimiter, AttributedString... elements)
public static AttributedString join(AttributedString delimiter, Iterable<AttributedString> elements)
Copyright © 2019. All rights reserved.