com.izforge.izpack.gui
Class IzPackMetalTheme

java.lang.Object
  extended by javax.swing.plaf.metal.MetalTheme
      extended by javax.swing.plaf.metal.DefaultMetalTheme
          extended by com.izforge.izpack.gui.IzPackMetalTheme
Direct Known Subclasses:
IzPackKMetalTheme

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

The IzPack metal theme.

Author:
Julien Ponge

Field Summary
private  javax.swing.plaf.ColorUIResource color
          The fonts color.
private  javax.swing.plaf.FontUIResource controlFont
           
private  javax.swing.plaf.FontUIResource menuFont
           
private  javax.swing.plaf.FontUIResource windowTitleFont
           
 
Constructor Summary
IzPackMetalTheme()
          The constructor.
 
Method Summary
private  java.awt.Font createFont(java.lang.String name, int style, int size)
           
 javax.swing.plaf.ColorUIResource getControlTextColor()
          Returns the color.
 javax.swing.plaf.FontUIResource getControlTextFont()
          The Font of Labels in many cases
 javax.swing.plaf.ColorUIResource getMenuTextColor()
          Returns the color.
 javax.swing.plaf.FontUIResource getMenuTextFont()
          The Font of Menus and MenuItems
 javax.swing.plaf.ColorUIResource getSystemTextColor()
          Returns the color.
 javax.swing.plaf.FontUIResource getSystemTextFont()
          The Font of Nodes in JTrees
 javax.swing.plaf.ColorUIResource getUserTextColor()
          Returns the color.
 javax.swing.plaf.FontUIResource getUserTextFont()
          The Font in TextFields, EditorPanes, etc.
 javax.swing.plaf.FontUIResource getWindowTitleFont()
          The Font of the Title of JInternalFrames
 
Methods inherited from class javax.swing.plaf.metal.DefaultMetalTheme
getName, getPrimary1, getPrimary2, getPrimary3, getSecondary1, getSecondary2, getSecondary3, getSubTextFont
 
Methods inherited from class javax.swing.plaf.metal.MetalTheme
addCustomEntriesToTable, getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getDesktopColor, getFocusColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getTextHighlightColor, getWhite, getWindowBackground, getWindowTitleBackground, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

color

private javax.swing.plaf.ColorUIResource color
The fonts color.


controlFont

private javax.swing.plaf.FontUIResource controlFont

menuFont

private javax.swing.plaf.FontUIResource menuFont

windowTitleFont

private javax.swing.plaf.FontUIResource windowTitleFont
Constructor Detail

IzPackMetalTheme

public IzPackMetalTheme()
The constructor.

Method Detail

createFont

private java.awt.Font createFont(java.lang.String name,
                                 int style,
                                 int size)

getControlTextColor

public javax.swing.plaf.ColorUIResource getControlTextColor()
Returns the color.

Overrides:
getControlTextColor in class javax.swing.plaf.metal.MetalTheme
Returns:
The color.

getMenuTextColor

public javax.swing.plaf.ColorUIResource getMenuTextColor()
Returns the color.

Returns:
The color.

getSystemTextColor

public javax.swing.plaf.ColorUIResource getSystemTextColor()
Returns the color.

Overrides:
getSystemTextColor in class javax.swing.plaf.metal.MetalTheme
Returns:
The color.

getUserTextColor

public javax.swing.plaf.ColorUIResource getUserTextColor()
Returns the color.

Overrides:
getUserTextColor in class javax.swing.plaf.metal.MetalTheme
Returns:
The color.

getControlTextFont

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

Overrides:
getControlTextFont in class javax.swing.plaf.metal.DefaultMetalTheme

getMenuTextFont

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

Overrides:
getMenuTextFont in class javax.swing.plaf.metal.DefaultMetalTheme

getSystemTextFont

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

Overrides:
getSystemTextFont in class javax.swing.plaf.metal.DefaultMetalTheme

getUserTextFont

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

Overrides:
getUserTextFont in class javax.swing.plaf.metal.DefaultMetalTheme

getWindowTitleFont

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

Overrides:
getWindowTitleFont in class javax.swing.plaf.metal.DefaultMetalTheme