com.sciapp.common.gui
Class SkinManager

java.lang.Object
  extended by com.sciapp.common.gui.SkinManager

public class SkinManager
extends Object

A SkinManager.


Method Summary
 String getCurrentTheme()
          Returns the current theme.
 String[] getThemes()
          Returns a list of themes.
static SkinManager instance()
          Returns the instance of SkinManager.
 void setMainComponent(Component c)
          Sets the main component that will be used to update every time the LF changes.
 boolean setTheme(String themeName)
          Sets the theme to themeName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCurrentTheme

public String getCurrentTheme()
Returns the current theme.

Returns:
the current theme.

getThemes

public String[] getThemes()
Returns a list of themes.

Returns:
the selectable themes.

instance

public static SkinManager instance()
Returns the instance of SkinManager.

Returns:
the SkinManager instance.

setMainComponent

public void setMainComponent(Component c)
Sets the main component that will be used to update every time the LF changes. This is usually a frame component.

Parameters:
c - the main component to assign.

setTheme

public boolean setTheme(String themeName)
Sets the theme to themeName.

Parameters:
themeName - the new theme to assign.