org.xnap.gui.theme
Class AbstractTheme

java.lang.Object
  extended by org.xnap.gui.theme.AbstractTheme
All Implemented Interfaces:
Theme
Direct Known Subclasses:
DefaultIconTheme, DefaultTheme

public abstract class AbstractTheme
extends java.lang.Object
implements Theme

This class provides a default implementation for a theme. A theme can customize the fonts and colors of an application.


Constructor Summary
AbstractTheme(java.lang.String name)
           
 
Method Summary
static java.lang.Object[] createProperties(javax.swing.plaf.FontUIResource font)
          Creates and returns font properties.
 java.lang.String getClassName()
          Returns the class name of this theme.
 java.lang.String getName()
          Returns the name of this theme.
 boolean isConfigurable()
          Returns false.
 boolean isIconTheme()
          Returns false.
 boolean showConfigurationDialog(java.awt.Component parent)
          Show a configuration dialog.
 java.lang.String toString()
          Returns the name of this theme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xnap.gui.theme.Theme
install
 

Constructor Detail

AbstractTheme

public AbstractTheme(java.lang.String name)
Method Detail

isConfigurable

public boolean isConfigurable()
Returns false.

Specified by:
isConfigurable in interface Theme
See Also:
Theme.showConfigurationDialog(Component)

isIconTheme

public boolean isIconTheme()
Returns false.

Specified by:
isIconTheme in interface Theme

getClassName

public java.lang.String getClassName()
Returns the class name of this theme.

Specified by:
getClassName in interface Theme

showConfigurationDialog

public boolean showConfigurationDialog(java.awt.Component parent)
Show a configuration dialog.

Specified by:
showConfigurationDialog in interface Theme
Returns:
true, if theme should be reloaded; false, otherwise
See Also:
isConfigurable()

getName

public java.lang.String getName()
Returns the name of this theme.

Specified by:
getName in interface Theme

createProperties

public static java.lang.Object[] createProperties(javax.swing.plaf.FontUIResource font)
Creates and returns font properties. Sets all fonts to font.


toString

public java.lang.String toString()
Returns the name of this theme.

Overrides:
toString in class java.lang.Object


Copyright © 2001-2005 XNap Team. All Rights Reserved.