org.vizzini.ui.text
Class TextStyle

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

public class TextStyle
extends Object
implements Cloneable

Provides a container for a font and colors for a text component.

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

Field Summary
static Font DEFAULT_FONT
          Default font.
static TextColorSet DEFAULT_NORMAL_TEXT_COLOR_SET
          Default normal text color.
static TextColorSet DEFAULT_SELECTION_TEXT_COLOR_SET
          Default selection text color.
 
Constructor Summary
TextStyle()
          Construct this object.
TextStyle(Font font, TextColorSet normalTextColorSet, TextColorSet selectionTextColorSet)
          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.
protected static boolean equals(Object object0, Object object1)
          Return true if the given objects are equal.
 Font getFont()
           
 TextColorSet getNormalTextColorSet()
           
 TextColorSet getSelectionTextColorSet()
           
 int hashCode()
          Returns a hash code value for the object.
 void setFont(Font font)
           
 void setNormalTextColorSet(TextColorSet normalTextColorSet)
           
 void setSelectionTextColorSet(TextColorSet selectionTextColorSet)
           
 String toString()
          Return a string representation of this object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_FONT

public static final Font DEFAULT_FONT
Default font.


DEFAULT_NORMAL_TEXT_COLOR_SET

public static final TextColorSet DEFAULT_NORMAL_TEXT_COLOR_SET
Default normal text color.


DEFAULT_SELECTION_TEXT_COLOR_SET

public static final TextColorSet DEFAULT_SELECTION_TEXT_COLOR_SET
Default selection text color.

Constructor Detail

TextStyle

public TextStyle()
Construct this object.

Since:
v0.2

TextStyle

public TextStyle(Font font,
                 TextColorSet normalTextColorSet,
                 TextColorSet selectionTextColorSet)
Construct this object.

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

getFont

public Font getFont()
Returns:
Return font.
Since:
v0.2

getNormalTextColorSet

public TextColorSet getNormalTextColorSet()
Returns:
Return normalTextColor.
Since:
v0.2

getSelectionTextColorSet

public TextColorSet getSelectionTextColorSet()
Returns:
Return selectionTextColor.
Since:
v0.2

hashCode

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

Overrides:
hashCode in class Object
Since:
v0.2

setFont

public void setFont(Font font)
Parameters:
font - The font to set.
Since:
v0.2

setNormalTextColorSet

public void setNormalTextColorSet(TextColorSet normalTextColorSet)
Parameters:
normalTextColorSet - The normalTextColorSet to set.
Since:
v0.2

setSelectionTextColorSet

public void setSelectionTextColorSet(TextColorSet selectionTextColorSet)
Parameters:
selectionTextColorSet - The selectionTextColorSet to set.
Since:
v0.2

toString

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

Overrides:
toString in class Object
Since:
v0.2

equals

protected static boolean equals(Object object0,
                                Object object1)
Return true if the given objects are equal.

Since:
v0.2


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02