kiwi.ui
Class ColoredString
java.lang.Object
|
+--kiwi.ui.ColoredString
- public class ColoredString
- extends Object
A class that represents a colored string.
- Version:
- 1.1 (11/98)
- Author:
- Mark Lindner, PING Software Group
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ColoredString
public ColoredString(String string,
Color color)
- Construct a new colored string.
- Parameters:
string
- The string.color
- The color.
ColoredString
public ColoredString()
- Construct a new colored string. The string is set to "" and the color
is set to black.
getString
public String getString()
- Get the string.
- Returns:
- The string.
- See Also:
setString(java.lang.String)
setString
public void setString(String string)
- Set the string.
- Parameters:
string
- The new string.- See Also:
getString()
getColor
public Color getColor()
- Get the color.
- Returns:
- The color.
- See Also:
setColor(java.awt.Color)
setColor
public void setColor(Color color)
- Set the color.
- Parameters:
color
- The new color.- See Also:
getColor()