org.vizzini.ui.table
Class TableStyle

java.lang.Object
  extended by org.vizzini.ui.table.TableStyle
All Implemented Interfaces:
Cloneable

public class TableStyle
extends Object
implements Cloneable

Provides a container for text and color styles for a table.

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

Field Summary
static Color DEFAULT_ALTERNATE_ROW_COLOR
          Default alternate row color.
static Color DEFAULT_BACKGROUND
          Default background.
static Font DEFAULT_FONT
          Default font.
static Color DEFAULT_FOREGROUND
          Default foreground.
static Color DEFAULT_GRID_COLOR
          Default grid color.
static TextStyle DEFAULT_HEADER_TEXT_STYLE
          Default header text style.
static TextColorSet DEFAULT_NORMAL_TEXT_COLOR_SET
          Default text color set.
static Color DEFAULT_SELECTION_BACKGROUND
          Default selection background.
static Color DEFAULT_SELECTION_FOREGROUND
          Default selection foreground.
static TextColorSet DEFAULT_SELECTION_TEXT_COLOR_SET
          Default selection text color set.
static TableStyle DEFAULT_TABLE_STYLE
          Default table style.
static TextStyle DEFAULT_TEXT_STYLE
          Default text style.
 
Constructor Summary
TableStyle()
          Construct this object.
TableStyle(TextStyle headerTextStyle, TextStyle textStyle, Color gridColor, Color alternateRowColor)
          Construct this object with the given parameters.
 
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.
 Color getAlternateRowColor()
           
 Color getGridColor()
           
 TextStyle getHeaderTextStyle()
           
 TextStyle getTextStyle()
           
 int hashCode()
          Returns a hash code value for the object.
 void setAlternateRowColor(Color alternateRowColor)
           
 void setGridColor(Color gridColor)
           
 void setHeaderTextStyle(TextStyle headerTextStyle)
           
 void setTextStyle(TextStyle textStyle)
           
 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_FOREGROUND

public static final Color DEFAULT_FOREGROUND
Default foreground.


DEFAULT_BACKGROUND

public static final Color DEFAULT_BACKGROUND
Default background.


DEFAULT_SELECTION_FOREGROUND

public static final Color DEFAULT_SELECTION_FOREGROUND
Default selection foreground.


DEFAULT_SELECTION_BACKGROUND

public static final Color DEFAULT_SELECTION_BACKGROUND
Default selection background.


DEFAULT_GRID_COLOR

public static final Color DEFAULT_GRID_COLOR
Default grid color.


DEFAULT_ALTERNATE_ROW_COLOR

public static final Color DEFAULT_ALTERNATE_ROW_COLOR
Default alternate row color.


DEFAULT_NORMAL_TEXT_COLOR_SET

public static final TextColorSet DEFAULT_NORMAL_TEXT_COLOR_SET
Default text color set.


DEFAULT_SELECTION_TEXT_COLOR_SET

public static final TextColorSet DEFAULT_SELECTION_TEXT_COLOR_SET
Default selection text color set.


DEFAULT_TEXT_STYLE

public static final TextStyle DEFAULT_TEXT_STYLE
Default text style.


DEFAULT_HEADER_TEXT_STYLE

public static final TextStyle DEFAULT_HEADER_TEXT_STYLE
Default header text style.


DEFAULT_TABLE_STYLE

public static final TableStyle DEFAULT_TABLE_STYLE
Default table style.

Constructor Detail

TableStyle

public TableStyle()
Construct this object.

Since:
v0.2

TableStyle

public TableStyle(TextStyle headerTextStyle,
                  TextStyle textStyle,
                  Color gridColor,
                  Color alternateRowColor)
Construct this object with the given parameters.

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

getAlternateRowColor

public Color getAlternateRowColor()
Returns:
Return alternateRowColor.

getGridColor

public Color getGridColor()
Returns:
Return gridColor.

getHeaderTextStyle

public TextStyle getHeaderTextStyle()
Returns:
Return headerTextStyle.

getTextStyle

public TextStyle getTextStyle()
Returns:
Return textStyle.

hashCode

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

Overrides:
hashCode in class Object
Since:
v0.2

setAlternateRowColor

public void setAlternateRowColor(Color alternateRowColor)
Parameters:
alternateRowColor - The alternateRowColor to set (cannot be null).

setGridColor

public void setGridColor(Color gridColor)
Parameters:
gridColor - The gridColor to set (cannot be null).

setHeaderTextStyle

public void setHeaderTextStyle(TextStyle headerTextStyle)
Parameters:
headerTextStyle - The headerTextStyle to set.

setTextStyle

public void setTextStyle(TextStyle textStyle)
Parameters:
textStyle - The textStyle to set (cannot be null).

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