public class ColoredString extends Object
Modifier and Type | Field and Description |
---|---|
private Color |
color |
private String |
string |
Constructor and Description |
---|
ColoredString()
Construct a new colored string.
|
ColoredString(String string,
Color color)
Construct a new colored string.
|
Modifier and Type | Method and Description |
---|---|
Color |
getColor()
Get the color.
|
String |
getString()
Get the string.
|
void |
setColor(Color color)
Set the color.
|
void |
setString(String string)
Set the string.
|
public ColoredString(String string, Color color)
string
- The string.color
- The color.public ColoredString()
public String getString()
setString(java.lang.String)
public void setString(String string)
string
- The new string.getString()
public Color getColor()
setColor(java.awt.Color)
public void setColor(Color color)
color
- The new color.getColor()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses