Package org.jline.utils
Class AttributedCharSequence
java.lang.Object
org.jline.utils.AttributedCharSequence
- All Implemented Interfaces:
CharSequence
- Direct Known Subclasses:
AttributedString,AttributedStringBuilder
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract char[]buffer()charcharAt(int index) intcodePointAt(int index) intcodePointBefore(int index) intcodePointCount(int index, int length) intcolumnSplitLength(int columns) columnSplitLength(int columns, boolean includeNewlines, boolean delayLineWrap) columnSubSequence(int start, int stop) booleancontains(char c) booleanisHidden(int index) protected abstract intoffset()voidvoidstatic intrgbColor(int col) Deprecated.static introundColor(int col, int max) Deprecated.static introundRgbColor(int r, int g, int b, int max) Deprecated.intrunLimit(int index) intrunStart(int index) abstract AttributedStylestyleAt(int index) abstract AttributedStringsubSequence(int start, int end) substring(int start, int end) toAnsi()toAnsi(int colors, boolean force256colors) Deprecated.Deprecated.toAnsi(int colors, AttributedCharSequence.ForceMode force) toAnsi(int colors, AttributedCharSequence.ForceMode force, ColorPalette palette) toAnsi(int colors, AttributedCharSequence.ForceMode force, ColorPalette palette, String altIn, String altOut) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty, length
-
Field Details
-
TRUE_COLORS
public static final int TRUE_COLORS- See Also:
-
-
Constructor Details
-
AttributedCharSequence
public AttributedCharSequence()
-
-
Method Details
-
print
-
println
-
toAnsi
-
toAnsi
-
toAnsi
Deprecated. -
toAnsi
Deprecated. -
toAnsi
-
toAnsi
-
toAnsi
public String toAnsi(int colors, AttributedCharSequence.ForceMode force, ColorPalette palette, String altIn, String altOut) -
rgbColor
Deprecated. -
roundColor
Deprecated. -
roundRgbColor
Deprecated. -
styleAt
-
isHidden
public boolean isHidden(int index) -
runStart
public int runStart(int index) -
runLimit
public int runLimit(int index) -
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
substring
-
buffer
protected abstract char[] buffer() -
offset
protected abstract int offset() -
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
codePointAt
public int codePointAt(int index) -
contains
public boolean contains(char c) -
codePointBefore
public int codePointBefore(int index) -
codePointCount
public int codePointCount(int index, int length) -
columnLength
public int columnLength() -
columnSubSequence
-
columnSplitLength
-
columnSplitLength
public List<AttributedString> columnSplitLength(int columns, boolean includeNewlines, boolean delayLineWrap) -
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
toAttributedString
-