toolkit.gui
Class CustomMetalTheme

java.lang.Object
  extended byjavax.swing.plaf.metal.MetalTheme
      extended byjavax.swing.plaf.metal.DefaultMetalTheme
          extended bytoolkit.gui.CustomMetalTheme

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

Class permettant de definir l'aspect du look & feel metal


Constructor Summary
CustomMetalTheme()
          Constructeur
 
Method Summary
 javax.swing.plaf.ColorUIResource getControlTextColor()
           
 javax.swing.plaf.FontUIResource getControlTextFont()
           
 javax.swing.plaf.ColorUIResource getMenuTextColor()
           
 javax.swing.plaf.FontUIResource getMenuTextFont()
           
 javax.swing.plaf.FontUIResource getSubTextFont()
           
 javax.swing.plaf.FontUIResource getSystemTextFont()
           
 javax.swing.plaf.ColorUIResource getUserTextColor()
           
 javax.swing.plaf.FontUIResource getUserTextFont()
           
 javax.swing.plaf.FontUIResource getWindowTitleFont()
           
 void setColorFont(int r, int g, int b)
          Définie la couleur des textes
 void setFont(java.awt.Font f)
          Définie la police du texte
 
Methods inherited from class javax.swing.plaf.metal.DefaultMetalTheme
getName, getPrimary1, getPrimary2, getPrimary3, getSecondary1, getSecondary2, getSecondary3
 
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, getSystemTextColor, 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
 

Constructor Detail

CustomMetalTheme

public CustomMetalTheme()
Constructeur

Method Detail

setColorFont

public void setColorFont(int r,
                         int g,
                         int b)
Définie la couleur des textes

Parameters:
r - rouge
g - vert
b - bleu

setFont

public void setFont(java.awt.Font f)
Définie la police du texte

Parameters:
f - police de texte

getControlTextColor

public javax.swing.plaf.ColorUIResource getControlTextColor()

getMenuTextColor

public javax.swing.plaf.ColorUIResource getMenuTextColor()

getUserTextColor

public javax.swing.plaf.ColorUIResource getUserTextColor()

getControlTextFont

public javax.swing.plaf.FontUIResource getControlTextFont()

getMenuTextFont

public javax.swing.plaf.FontUIResource getMenuTextFont()

getSystemTextFont

public javax.swing.plaf.FontUIResource getSystemTextFont()

getUserTextFont

public javax.swing.plaf.FontUIResource getUserTextFont()

getWindowTitleFont

public javax.swing.plaf.FontUIResource getWindowTitleFont()

getSubTextFont

public javax.swing.plaf.FontUIResource getSubTextFont()