QJCC homepage

biz.chitec.quarterback.swing
Class MyMetalTheme

java.lang.Object
  extended byjavax.swing.plaf.metal.MetalTheme
      extended byjavax.swing.plaf.metal.DefaultMetalTheme
          extended bybiz.chitec.quarterback.swing.MyMetalTheme

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

Metal theme with color scheme support and support for some additional GUI objects.

Version:
$Id: 0aa21a62b414e02d2c5444db61cd2df5b46570b3 $
Author:
Dirk Hillbrecht 1997-1999, chitec/Dirk Hillbrecht 2000-2001. Distributed under the terms of the GNU LGPL.

Nested Class Summary
 
Nested classes inherited from class javax.swing.plaf.metal.DefaultMetalTheme
 
Field Summary
private  javax.swing.plaf.ColorUIResource black
           
private  javax.swing.plaf.FontUIResource controlTextFont
           
private static java.util.Map defaultfonts
           
private  javax.swing.plaf.FontUIResource menuTextFont
           
private  javax.swing.plaf.ColorUIResource primary1
           
private  javax.swing.plaf.ColorUIResource primary2
           
private  javax.swing.plaf.ColorUIResource primary3
           
private  javax.swing.plaf.ColorUIResource secondary1
           
private  javax.swing.plaf.ColorUIResource secondary2
           
private  javax.swing.plaf.ColorUIResource secondary3
           
private  javax.swing.plaf.FontUIResource subTextFont
           
private  javax.swing.plaf.FontUIResource systemTextFont
           
private static java.lang.String[] themes
           
private  javax.swing.plaf.FontUIResource titleFont
           
private  javax.swing.plaf.FontUIResource userTextFont
           
private  javax.swing.plaf.ColorUIResource white
           
private  javax.swing.plaf.FontUIResource windowTitleFont
           
 
Fields inherited from class javax.swing.plaf.metal.DefaultMetalTheme
 
Fields inherited from class javax.swing.plaf.metal.MetalTheme
 
Constructor Summary
MyMetalTheme()
           
MyMetalTheme(int fontsize)
           
MyMetalTheme(int fontsize, java.lang.String colortheme)
           
MyMetalTheme(int fontsize, java.lang.String colortheme, boolean colinv)
           
MyMetalTheme(java.util.Map f, java.lang.String prefix, int fontsize, java.lang.String colortheme, boolean colinv)
           
 
Method Summary
protected  javax.swing.plaf.ColorUIResource getBlack()
           
 javax.swing.plaf.FontUIResource getControlTextFont()
           
static java.util.Map getDefaultFontValues()
           
private  javax.swing.plaf.FontUIResource getFUIR(java.util.Map f, java.lang.String prefix, java.lang.String fontname, int fontsize)
           
private  java.lang.String getFUIRPart(java.util.Map f, java.lang.String prefix, java.lang.String fontnamepluspart)
           
 javax.swing.plaf.FontUIResource getMenuTextFont()
           
 java.lang.String getName()
           
protected  javax.swing.plaf.ColorUIResource getPrimary1()
           
protected  javax.swing.plaf.ColorUIResource getPrimary2()
           
protected  javax.swing.plaf.ColorUIResource getPrimary3()
           
protected  javax.swing.plaf.ColorUIResource getSecondary1()
           
protected  javax.swing.plaf.ColorUIResource getSecondary2()
           
protected  javax.swing.plaf.ColorUIResource getSecondary3()
           
 javax.swing.plaf.FontUIResource getSubTextFont()
           
 javax.swing.plaf.FontUIResource getSystemTextFont()
           
static java.lang.String[] getThemes()
           
 javax.swing.plaf.FontUIResource getTitleFont()
           
 javax.swing.plaf.FontUIResource getUserTextFont()
           
protected  javax.swing.plaf.ColorUIResource getWhite()
           
 javax.swing.plaf.FontUIResource getWindowTitleFont()
           
private  void setColors(java.lang.String c, boolean inv)
           
private  void setThemeFonts(java.util.Map f, java.lang.String prefix, int fontsize)
           
 
Methods inherited from class javax.swing.plaf.metal.DefaultMetalTheme
 
Methods inherited from class javax.swing.plaf.metal.MetalTheme
addCustomEntriesToTable, getAcceleratorForeground, getAcceleratorSelectedForeground, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getDesktopColor, getFocusColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSystemTextColor, getTextHighlightColor, getUserTextColor, 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

themes

private static final java.lang.String[] themes

defaultfonts

private static final java.util.Map defaultfonts

black

private javax.swing.plaf.ColorUIResource black

white

private javax.swing.plaf.ColorUIResource white

primary1

private javax.swing.plaf.ColorUIResource primary1

primary2

private javax.swing.plaf.ColorUIResource primary2

primary3

private javax.swing.plaf.ColorUIResource primary3

secondary1

private javax.swing.plaf.ColorUIResource secondary1

secondary2

private javax.swing.plaf.ColorUIResource secondary2

secondary3

private javax.swing.plaf.ColorUIResource secondary3

controlTextFont

private javax.swing.plaf.FontUIResource controlTextFont

menuTextFont

private javax.swing.plaf.FontUIResource menuTextFont

subTextFont

private javax.swing.plaf.FontUIResource subTextFont

systemTextFont

private javax.swing.plaf.FontUIResource systemTextFont

userTextFont

private javax.swing.plaf.FontUIResource userTextFont

windowTitleFont

private javax.swing.plaf.FontUIResource windowTitleFont

titleFont

private javax.swing.plaf.FontUIResource titleFont
Constructor Detail

MyMetalTheme

public MyMetalTheme(java.util.Map f,
                    java.lang.String prefix,
                    int fontsize,
                    java.lang.String colortheme,
                    boolean colinv)

MyMetalTheme

public MyMetalTheme(int fontsize,
                    java.lang.String colortheme,
                    boolean colinv)

MyMetalTheme

public MyMetalTheme(int fontsize,
                    java.lang.String colortheme)

MyMetalTheme

public MyMetalTheme(int fontsize)

MyMetalTheme

public MyMetalTheme()
Method Detail

getThemes

public static final java.lang.String[] getThemes()

getDefaultFontValues

public static final java.util.Map getDefaultFontValues()

setThemeFonts

private void setThemeFonts(java.util.Map f,
                           java.lang.String prefix,
                           int fontsize)

getFUIR

private javax.swing.plaf.FontUIResource getFUIR(java.util.Map f,
                                                java.lang.String prefix,
                                                java.lang.String fontname,
                                                int fontsize)

getFUIRPart

private java.lang.String getFUIRPart(java.util.Map f,
                                     java.lang.String prefix,
                                     java.lang.String fontnamepluspart)

setColors

private void setColors(java.lang.String c,
                       boolean inv)

getName

public java.lang.String getName()

getPrimary1

protected javax.swing.plaf.ColorUIResource getPrimary1()

getPrimary2

protected javax.swing.plaf.ColorUIResource getPrimary2()

getPrimary3

protected javax.swing.plaf.ColorUIResource getPrimary3()

getSecondary1

protected javax.swing.plaf.ColorUIResource getSecondary1()

getSecondary2

protected javax.swing.plaf.ColorUIResource getSecondary2()

getSecondary3

protected javax.swing.plaf.ColorUIResource getSecondary3()

getBlack

protected javax.swing.plaf.ColorUIResource getBlack()

getWhite

protected javax.swing.plaf.ColorUIResource getWhite()

getControlTextFont

public javax.swing.plaf.FontUIResource getControlTextFont()

getMenuTextFont

public javax.swing.plaf.FontUIResource getMenuTextFont()

getSubTextFont

public javax.swing.plaf.FontUIResource getSubTextFont()

getSystemTextFont

public javax.swing.plaf.FontUIResource getSystemTextFont()

getUserTextFont

public javax.swing.plaf.FontUIResource getUserTextFont()

getWindowTitleFont

public javax.swing.plaf.FontUIResource getWindowTitleFont()

getTitleFont

public javax.swing.plaf.FontUIResource getTitleFont()

QJCC homepage