com.liquidatom.derbyscore.theme
Class ThemeFactory

java.lang.Object
  extended by com.liquidatom.derbyscore.theme.ThemeFactory

@ThreadSafe
public class ThemeFactory
extends java.lang.Object

The global reference to the Theme currently being used when rendering the scoreboard can be retrieved from this factory.

Author:
Russell Francis (russ@metro-six.com)

Method Summary
 Theme getCurrent()
          Get the current theme used to render the scoreboard.
static ThemeFactory getInstance()
          Grab a reference to the ThemeFactory singleton.
 void setCurrent(Theme current)
          Set the current theme used to render the scoreboard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ThemeFactory getInstance()
Grab a reference to the ThemeFactory singleton.

Returns:
The global ThemeFactory instance.

getCurrent

public Theme getCurrent()
Get the current theme used to render the scoreboard. S * @return The current theme used to render the scoreboard.


setCurrent

public void setCurrent(Theme current)
Set the current theme used to render the scoreboard.

Parameters:
current - The current theme to use to render the scoreboard.