net.sourceforge.mlf.metouia
Class MetouiaDefaultTheme

java.lang.Object
  extended byjavax.swing.plaf.metal.MetalTheme
      extended byjavax.swing.plaf.metal.DefaultMetalTheme
          extended bynet.sourceforge.mlf.metouia.MetouiaDefaultTheme

public class MetouiaDefaultTheme
extends javax.swing.plaf.metal.DefaultMetalTheme

This class represents the default Metouia theme. Extend this class in order to creates themes compatible to the Metouia Look and Feel.


Constructor Summary
MetouiaDefaultTheme()
           
 
Method Summary
 void addCustomEntriesToTable(javax.swing.UIDefaults table)
          Adds some custom values to the defaults table.
 javax.swing.plaf.FontUIResource getControlTextFont()
          Gets the Font of Labels in many cases.
 java.awt.Color getGradientReflection()
          Gets the upper gradient color for components like JButton, JMenuBar and JProgressBar.
 java.awt.Color getGradientShadow()
          Gets the lower gradient color for components like JButton, JMenuBar and JProgressBar.
 java.awt.Color getGradientTranslucentReflection()
          Gets the transluscent variation of the upper gradient color for components like JButton, JMenuBar and JProgressBar.
 java.awt.Color getGradientTranslucentShadow()
          Gets the transluscent variation of the lower gradient color for components like JButton, JMenuBar and JProgressBar.
 javax.swing.plaf.ColorUIResource getMenuSelectedBackground()
          Gets the background color of a selected menu item.
 javax.swing.plaf.FontUIResource getMenuTextFont()
          Gets the Font of Menus and MenuItems.
 java.lang.String getName()
          Gets the name of this theme.
 javax.swing.plaf.ColorUIResource getPressedBackground()
          Gets the background color of a pressed button.
protected  javax.swing.plaf.ColorUIResource getPrimary1()
          Gets the first primary color.
protected  javax.swing.plaf.ColorUIResource getPrimary2()
          Gets the second primary color.
protected  javax.swing.plaf.ColorUIResource getPrimary3()
          Gets the third primary color.
protected  javax.swing.plaf.ColorUIResource getSecondary1()
          Gets the first secondary color.
protected  javax.swing.plaf.ColorUIResource getSecondary2()
          Gets the second secondary color.
protected  javax.swing.plaf.ColorUIResource getSecondary3()
          Gets the third secondary color.
 javax.swing.plaf.ColorUIResource getSeparatorForeground()
          Gets the foreground color of a separator (in menues etc.).
 javax.swing.plaf.FontUIResource getSystemTextFont()
          Gets the Font of Nodes in JTrees.
 javax.swing.plaf.FontUIResource getUserTextFont()
          Gets the Font in TextFields, EditorPanes, etc.
 javax.swing.plaf.FontUIResource getWindowTitleFont()
          Gets the Font of the Title of JInternalFrames.
 
Methods inherited from class javax.swing.plaf.metal.DefaultMetalTheme
getSubTextFont
 
Methods inherited from class javax.swing.plaf.metal.MetalTheme
getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getDesktopColor, getFocusColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedForeground, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSystemTextColor, getTextHighlightColor, getUserTextColor, getWhite, getWindowBackground, getWindowTitleBackground, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetouiaDefaultTheme

public MetouiaDefaultTheme()
Method Detail

getGradientReflection

public java.awt.Color getGradientReflection()
Gets the upper gradient color for components like JButton, JMenuBar and JProgressBar.

Returns:
The gradient reflection color.

getGradientShadow

public java.awt.Color getGradientShadow()
Gets the lower gradient color for components like JButton, JMenuBar and JProgressBar.

Returns:
The gradient shadow color.

getGradientTranslucentReflection

public java.awt.Color getGradientTranslucentReflection()
Gets the transluscent variation of the upper gradient color for components like JButton, JMenuBar and JProgressBar.

Returns:
The transluscent gradient reflection color.

getGradientTranslucentShadow

public java.awt.Color getGradientTranslucentShadow()
Gets the transluscent variation of the lower gradient color for components like JButton, JMenuBar and JProgressBar.

Returns:
The transluscent gradient shadow color.

getControlTextFont

public javax.swing.plaf.FontUIResource getControlTextFont()
Gets the Font of Labels in many cases.

Returns:
The Font of Labels in many cases.

getMenuTextFont

public javax.swing.plaf.FontUIResource getMenuTextFont()
Gets the Font of Menus and MenuItems.

Returns:
The Font of Menus and MenuItems.

getSystemTextFont

public javax.swing.plaf.FontUIResource getSystemTextFont()
Gets the Font of Nodes in JTrees.

Returns:
The Font of Nodes in JTrees.

getUserTextFont

public javax.swing.plaf.FontUIResource getUserTextFont()
Gets the Font in TextFields, EditorPanes, etc.

Returns:
The Font in TextFields, EditorPanes, etc.

getWindowTitleFont

public javax.swing.plaf.FontUIResource getWindowTitleFont()
Gets the Font of the Title of JInternalFrames.

Returns:
The Font of the Title of JInternalFrames.

addCustomEntriesToTable

public void addCustomEntriesToTable(javax.swing.UIDefaults table)
Adds some custom values to the defaults table. Only some fonts are changed here.

Parameters:
table - The UI defaults table.

getMenuSelectedBackground

public javax.swing.plaf.ColorUIResource getMenuSelectedBackground()
Gets the background color of a selected menu item. Pending!

Returns:
The background color of a selected menu item.

getSeparatorForeground

public javax.swing.plaf.ColorUIResource getSeparatorForeground()
Gets the foreground color of a separator (in menues etc.).

Returns:
The foreground color of a separator

getName

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

Returns:
A string describing this theme.

getPrimary1

protected javax.swing.plaf.ColorUIResource getPrimary1()
Gets the first primary color.

Returns:
The first primary color. See field declaration for more details.

getPrimary2

protected javax.swing.plaf.ColorUIResource getPrimary2()
Gets the second primary color.

Returns:
The second primary color. See field declaration for more details.

getPrimary3

protected javax.swing.plaf.ColorUIResource getPrimary3()
Gets the third primary color.

Returns:
The third primary color. See field declaration for more details.

getSecondary1

protected javax.swing.plaf.ColorUIResource getSecondary1()
Gets the first secondary color.

Returns:
The first secondary color. See field declaration for more details.

getSecondary2

protected javax.swing.plaf.ColorUIResource getSecondary2()
Gets the second secondary color.

Returns:
The second secondary color. See field declaration for more details.

getSecondary3

protected javax.swing.plaf.ColorUIResource getSecondary3()
Gets the third secondary color.

Returns:
The third secondary color. See field declaration for more details.

getPressedBackground

public javax.swing.plaf.ColorUIResource getPressedBackground()
Gets the background color of a pressed button. Introduced by Metouia Look And Feel.

Returns:
The pressed background color.