public class AttributedStringBuilder extends AttributedCharSequence implements Appendable
| Constructor and Description |
|---|
AttributedStringBuilder() |
AttributedStringBuilder(int capacity) |
codePointAt, codePointBefore, codePointCount, columnLength, columnSplitLength, columnSplitLength, columnSubSequence, contains, isHidden, print, println, rgbColor, roundColor, roundRgbColor, runLimit, runStart, substring, toAnsi, toAnsi, toAnsi, toAnsi, toAttributedString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchars, codePointspublic AttributedStringBuilder()
public AttributedStringBuilder(int capacity)
public static AttributedString append(CharSequence... strings)
public int length()
length in interface CharSequencepublic char charAt(int index)
charAt in interface CharSequencecharAt in class AttributedCharSequencepublic AttributedStyle styleAt(int index)
styleAt in class AttributedCharSequenceprotected char[] buffer()
buffer in class AttributedCharSequenceprotected int offset()
offset in class AttributedCharSequencepublic AttributedString subSequence(int start, int end)
subSequence in interface CharSequencesubSequence in class AttributedCharSequencepublic AttributedStringBuilder append(CharSequence csq)
append in interface Appendablepublic AttributedStringBuilder append(CharSequence csq, int start, int end)
append in interface Appendablepublic AttributedStringBuilder append(char c)
append in interface Appendablepublic AttributedStringBuilder append(CharSequence csq, AttributedStyle style)
public AttributedStringBuilder style(AttributedStyle style)
public AttributedStringBuilder style(Function<AttributedStyle,AttributedStyle> style)
public AttributedStringBuilder styled(Function<AttributedStyle,AttributedStyle> style, CharSequence cs)
public AttributedStringBuilder styled(AttributedStyle style, CharSequence cs)
public AttributedStringBuilder styled(Function<AttributedStyle,AttributedStyle> style, Consumer<AttributedStringBuilder> consumer)
public AttributedStyle style()
public AttributedStringBuilder append(AttributedString str)
public AttributedStringBuilder append(AttributedString str, int start, int end)
public AttributedStringBuilder append(AttributedCharSequence str)
public AttributedStringBuilder append(AttributedCharSequence str, int start, int end)
protected void ensureCapacity(int nl)
public void appendAnsi(String ansi)
public AttributedStringBuilder ansiAppend(String ansi)
protected void insertTab(AttributedStyle s)
public void setLength(int l)
public AttributedStringBuilder tabs(int tabsize)
tabsize - Spaces per tab or 0 for no tab expansion. Must be non-negativepublic AttributedStringBuilder styleMatches(Pattern pattern, AttributedStyle s)
public AttributedStringBuilder styleMatches(Pattern pattern, List<AttributedStyle> styles)
Copyright © 2020. All rights reserved.