CADI.Viewer.Util
Class LookAndFeelFrame.Themes

java.lang.Object
  extended by CADI.Viewer.Util.LookAndFeelFrame.Themes
Enclosing class:
LookAndFeelFrame

private class LookAndFeelFrame.Themes
extends java.lang.Object

Defines all available themes which can allow the user to customize the Java Look and Feel. This themes are only available for the Java cross-platform L&F (Metal).


Nested Class Summary
private  class LookAndFeelFrame.Themes.Aqua
          This class defines the Aqua theme.
private  class LookAndFeelFrame.Themes.Default
          This class defines the Default theme.
private  class LookAndFeelFrame.Themes.HighContrast
          This class defines the HighContrast theme.
private  class LookAndFeelFrame.Themes.LargeFont
          This class defines the LargeFont theme.
private  class LookAndFeelFrame.Themes.Ocean
          This class defines the Ocean theme.
 
Field Summary
private  java.lang.String AQUA_NAME
           
private  java.lang.String DEFAULT_NAME
          Available theme names.
private  java.lang.String HIGH_CONTRAST
           
private  java.lang.String LARGE_FONT_NAME
           
private  java.lang.String OCEAN_NAME
           
private  java.lang.String[] themeList
           
 
Constructor Summary
private LookAndFeelFrame.Themes()
           
 
Method Summary
 java.lang.String[] getListOfThemes()
          Gets the list of available themes.
 javax.swing.plaf.metal.MetalTheme getTheme(java.lang.String themeName)
          Returns a theme object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NAME

private final java.lang.String DEFAULT_NAME
Available theme names.

See Also:
Constant Field Values

OCEAN_NAME

private final java.lang.String OCEAN_NAME
See Also:
Constant Field Values

AQUA_NAME

private final java.lang.String AQUA_NAME
See Also:
Constant Field Values

LARGE_FONT_NAME

private final java.lang.String LARGE_FONT_NAME
See Also:
Constant Field Values

HIGH_CONTRAST

private final java.lang.String HIGH_CONTRAST
See Also:
Constant Field Values

themeList

private final java.lang.String[] themeList
Constructor Detail

LookAndFeelFrame.Themes

private LookAndFeelFrame.Themes()
Method Detail

getListOfThemes

public java.lang.String[] getListOfThemes()
Gets the list of available themes.

Returns:
a list of available themes.

getTheme

public javax.swing.plaf.metal.MetalTheme getTheme(java.lang.String themeName)
Returns a theme object.

Parameters:
themeName - the theme name.
Returns:
a theme object.
Throws:
java.lang.IllegalArgumentException - if thameName is not available or it is null.


CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Group on Interactive Coding of Images (GICI) (contact)