com.sptci.echo2.style
Class Background

java.lang.Object
  extended by nextapp.echo2.app.Color
      extended by com.sptci.echo2.style.Background
All Implemented Interfaces:
Serializable

public class Background
extends Color

A singleton used to ensure a consistent background colour across the application. Uses HEX_VALUE as the default value.

Note: It is recommended that you use the getInstance() factory method to fetch instances of this class and not create new instances using the Background constructor.

Copyright 2006 Sans Pareil Technologies, Inc.

Version:
$Id: Background.java 3332 2007-06-08 12:17:03Z rakesh $
Author:
Rakesh Vidyadharan 2007-01-05
See Also:
Serialized Form

Field Summary
static int HEX_VALUE
          The default hex value for the background used across the application.
private static Color singleton
          The singleton instance of the background class.
 
Fields inherited from class nextapp.echo2.app.Color
BLACK, BLUE, CYAN, DARKGRAY, GREEN, LIGHTGRAY, MAGENTA, ORANGE, PINK, RED, WHITE, YELLOW
 
Constructor Summary
Background()
          Deprecated. Use getInstance() instead.
 
Method Summary
static Color getInstance()
          Return the singleton instance.
 
Methods inherited from class nextapp.echo2.app.Color
equals, getBlue, getGreen, getRed, getRgb, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

HEX_VALUE

public static final int HEX_VALUE
The default hex value for the background used across the application. This is colour that is used on the SPT website.

See Also:
Constant Field Values

singleton

private static final Color singleton
The singleton instance of the background class.

Constructor Detail

Background

@Deprecated
public Background()
Deprecated. Use getInstance() instead.

Create a new instance of the background.

Method Detail

getInstance

public static final Color getInstance()
Return the singleton instance.

Returns:
The default background colour to use.