public class AttributedStringBuilder extends AttributedCharSequence implements Appendable
Constructor and Description |
---|
AttributedStringBuilder() |
AttributedStringBuilder(int capacity) |
codePointAt, codePointBefore, codePointCount, columnLength, columnSplitLength, columnSplitLength, columnSubSequence, contains, isHidden, rgbColor, roundColor, roundRgbColor, runLimit, runStart, substring, toAnsi, toAnsi, toAnsi, toAttributedString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
chars, codePoints
public AttributedStringBuilder()
public AttributedStringBuilder(int capacity)
public static AttributedString append(CharSequence... strings)
public int length()
length
in interface CharSequence
public char charAt(int index)
charAt
in interface CharSequence
charAt
in class AttributedCharSequence
public AttributedStyle styleAt(int index)
styleAt
in class AttributedCharSequence
protected char[] buffer()
buffer
in class AttributedCharSequence
protected int offset()
offset
in class AttributedCharSequence
public AttributedString subSequence(int start, int end)
subSequence
in interface CharSequence
subSequence
in class AttributedCharSequence
public AttributedStringBuilder append(CharSequence csq)
append
in interface Appendable
public AttributedStringBuilder append(CharSequence csq, int start, int end)
append
in interface Appendable
public AttributedStringBuilder append(char c)
append
in interface Appendable
public 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)
Copyright © 2018 JBoss by Red Hat. All rights reserved.