@Deprecated public class ColoredStringList<T> extends java.util.ArrayList<IColoredString<T>>
IColoredStrings. It
does nothing smart, its only purpose is to save you some typing for frequent
calls.
ArrayList<IColoredString<T>>, where T is usually
Color from libGDX. Using ArrayList lets you build these using Maker.makeList(Object[]), if you want. Some of
the methods in this class aren't very obvious for what they actually do; ArrayList.add(Object) will add a new line,
while addText(String) will append text to the last line.| Constructor and Description |
|---|
ColoredStringList()
Deprecated.
|
ColoredStringList(int expectedSize)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllText(java.util.Collection<? extends IColoredString<T>> texts)
Deprecated.
Contrary to
Collection.addAll(Collection), this method appends
text to the current text, without inserting new lines. |
void |
addColoredText(java.lang.String text,
T c)
Deprecated.
Appends colored text to
this. |
void |
addColoredTextOnNewLine(java.lang.String text,
T color)
Deprecated.
Appends colored text to
this. |
void |
addEmptyLine()
Deprecated.
Jumps a line.
|
void |
addOnNewLine(java.util.Collection<? extends IColoredString<T>> texts)
Deprecated.
Adds
texts to this, starting a new line for the first
one. |
void |
addText(IColoredString<T> text)
Deprecated.
Appends
text to this. |
void |
addText(java.lang.String text)
Deprecated.
Appends
text to this, without specifying its color. |
void |
addTextOnNewLine(IColoredString<T> text)
Deprecated.
|
void |
addTextOnNewLine(java.lang.String text)
Deprecated.
Appends text to
this, on a new line; without specifying its
color. |
static <T> ColoredStringList<T> |
create()
Deprecated.
|
static <T> ColoredStringList<T> |
create(int expectedSize)
Deprecated.
|
void |
replaceColor(T old,
T new_)
Deprecated.
Changes a color in members of
this. |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic ColoredStringList()
public ColoredStringList(int expectedSize)
public static <T> ColoredStringList<T> create()
public static <T> ColoredStringList<T> create(int expectedSize)
expectedSize - public void addText(java.lang.String text)
text to this, without specifying its color.text - the text to appendpublic void addText(IColoredString<T> text)
text to this.text - the text to appendpublic void addColoredText(java.lang.String text,
T c)
this.text - the text to appendpublic void addTextOnNewLine(java.lang.String text)
this, on a new line; without specifying its
color.text - the text to appendpublic void addTextOnNewLine(IColoredString<T> text)
public void addColoredTextOnNewLine(java.lang.String text,
T color)
this.text - the text to appendpublic void addOnNewLine(java.util.Collection<? extends IColoredString<T>> texts)
texts to this, starting a new line for the first
one.texts - the Collection of objects extending IColoredString to appendpublic void addAllText(java.util.Collection<? extends IColoredString<T>> texts)
Collection.addAll(Collection), this method appends
text to the current text, without inserting new lines.texts - the Collection of objects extending IColoredString to appendpublic void addEmptyLine()
Copyright © Eben Howard 2012–2022. All rights reserved.