kiwi.ui
Class ColoredString

java.lang.Object
  extended bykiwi.ui.ColoredString

public class ColoredString
extends java.lang.Object

A class that represents a colored string.

Author:
Mark Lindner, PING Software Group

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

Field Detail

string

private java.lang.String string

color

private java.awt.Color color
Constructor Detail

ColoredString

public ColoredString(java.lang.String string,
                     java.awt.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 java.lang.String getString()
Get the string.

Returns:
The string.
See Also:
setString(java.lang.String)

setString

public void setString(java.lang.String string)
Set the string.

Parameters:
string - The new string.
See Also:
getString()

getColor

public java.awt.Color getColor()
Get the color.

Returns:
The color.
See Also:
setColor(java.awt.Color)

setColor

public void setColor(java.awt.Color color)
Set the color.

Parameters:
color - The new color.
See Also:
getColor()