org.vizzini.ui.text
Class TextColorSet

java.lang.Object
  extended by org.vizzini.ui.text.TextColorSet
All Implemented Interfaces:
Cloneable

public class TextColorSet
extends Object
implements Cloneable

Provides a set of colors for text.

Since:
v0.2
Version:
v0.2
Author:
Jeffrey M. Thompson

Constructor Summary
TextColorSet()
          Construct this object.
TextColorSet(Color foreground, Color background)
          Construct this object.
 
Method Summary
 Object clone()
          Return a clone of this instance.
 boolean equals(Object object)
          Return true if the given object is equal to this.
 Color getBackground()
           
 Color getForeground()
           
 int hashCode()
          Returns a hash code value for the object.
 void setBackground(Color color)
           
 void setForeground(Color color)
           
 String toString()
          Return a string representation of this object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextColorSet

public TextColorSet()
Construct this object.

Since:
v0.2

TextColorSet

public TextColorSet(Color foreground,
                    Color background)
Construct this object.

Parameters:
foreground - Foreground color.
background - Background color.
Since:
v0.2
Method Detail

clone

public Object clone()
Return a clone of this instance.

Overrides:
clone in class Object
Since:
v0.2

equals

public boolean equals(Object object)
Return true if the given object is equal to this.

Overrides:
equals in class Object
Parameters:
object - The object to compare.
Since:
v0.2

getBackground

public Color getBackground()
Returns:
Return background.
Since:
v0.2

getForeground

public Color getForeground()
Returns:
Return foreground.
Since:
v0.2

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class Object
Since:
v0.2

setBackground

public void setBackground(Color color)
Parameters:
color - The background to set.
Since:
v0.2

setForeground

public void setForeground(Color color)
Parameters:
color - The foreground to set.
Since:
v0.2

toString

public String toString()
Return a string representation of this object.

Overrides:
toString in class Object
Since:
v0.2


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02