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

Constructor Summary
ColoredString()
          Construct a new colored string.
ColoredString(String string, Color color)
          Construct a new colored string.
 
Method Summary
 Color getColor()
          Get the color.
 String getString()
          Get the string.
 void setColor(Color color)
          Set the color.
 void setString(String string)
          Set the string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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()