org.xnap.gui.theme
Class DefaultTheme

java.lang.Object
  extended by org.xnap.gui.theme.AbstractTheme
      extended by org.xnap.gui.theme.DefaultTheme
All Implemented Interfaces:
Theme

public class DefaultTheme
extends AbstractTheme

This class provides a theme that makes use of a custom font. A font chooser is provided as the configuration dialog.


Constructor Summary
DefaultTheme()
           
DefaultTheme(java.lang.String name)
           
 
Method Summary
 java.awt.Font getFont()
           
 java.lang.Object[] getProperties()
           
 void install()
          Installs the theme.
 boolean isConfigurable()
          Returns false.
 void setFont(java.awt.Font newValue)
           
 boolean showConfigurationDialog(java.awt.Component parent)
          Show a configuration dialog.
 
Methods inherited from class org.xnap.gui.theme.AbstractTheme
createProperties, getClassName, getName, isIconTheme, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultTheme

public DefaultTheme(java.lang.String name)

DefaultTheme

public DefaultTheme()
Method Detail

isConfigurable

public boolean isConfigurable()
Description copied from class: AbstractTheme
Returns false.

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

getFont

public java.awt.Font getFont()

getProperties

public java.lang.Object[] getProperties()

install

public void install()
Installs the theme. Sets the UIManager defaults.

See Also:
getProperties()

setFont

public void setFont(java.awt.Font newValue)

showConfigurationDialog

public boolean showConfigurationDialog(java.awt.Component parent)
Description copied from class: AbstractTheme
Show a configuration dialog.

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


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