byucc.jhdl.util.ui
Class ChangeableMetalTheme

java.lang.Object
  extended byjavax.swing.plaf.metal.MetalTheme
      extended byjavax.swing.plaf.metal.DefaultMetalTheme
          extended bybyucc.jhdl.util.ui.ChangeableMetalTheme
All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener

public class ChangeableMetalTheme
extends javax.swing.plaf.metal.DefaultMetalTheme
implements java.beans.PropertyChangeListener

This is really two classes in one, but they are linked so closely, it is more convenient to have everything in one class.


Field Summary
static java.lang.String PROP_BACKGROUND
           
static java.lang.String PROP_DESKTOP
           
static java.lang.String PROP_FONT_SIZE
           
static java.lang.String PROP_FOREGROUND
           
static java.lang.String PROP_LINK_COLORS
           
static java.lang.String PROP_LINK_COLORS_DIFF
           
static java.lang.String PROP_PRIMARY1
           
static java.lang.String PROP_PRIMARY2
           
static java.lang.String PROP_PRIMARY3
           
static java.lang.String PROP_SECONDARY1
           
static java.lang.String PROP_SECONDARY2
           
static java.lang.String PROP_SECONDARY3
           
static java.lang.String SYSTEM_ID
           
 
Method Summary
static void addTopLevelComponent(java.awt.Component component)
           
 javax.swing.plaf.ColorUIResource getBlack()
           
 javax.swing.plaf.FontUIResource getControlTextFont()
           
 javax.swing.plaf.ColorUIResource getDesktopColor()
           
 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()
           
 javax.swing.plaf.FontUIResource getUserTextFont()
           
 javax.swing.plaf.ColorUIResource getWhite()
           
 javax.swing.plaf.FontUIResource getWindowTitleFont()
           
static void installTheme()
          Method used to create and install the ChangeableMetalTheme.
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
static void removeTopLevelComponent(java.awt.Component component)
           
static void updateTopLevelComponents()
           
static void updateUIProperties()
           
 
Methods inherited from class javax.swing.plaf.metal.MetalTheme
addCustomEntriesToTable, getAcceleratorForeground, getAcceleratorSelectedForeground, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, 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

PROP_FOREGROUND

public static final java.lang.String PROP_FOREGROUND
See Also:
Constant Field Values

PROP_BACKGROUND

public static final java.lang.String PROP_BACKGROUND
See Also:
Constant Field Values

PROP_DESKTOP

public static final java.lang.String PROP_DESKTOP
See Also:
Constant Field Values

PROP_PRIMARY1

public static final java.lang.String PROP_PRIMARY1
See Also:
Constant Field Values

PROP_PRIMARY2

public static final java.lang.String PROP_PRIMARY2
See Also:
Constant Field Values

PROP_PRIMARY3

public static final java.lang.String PROP_PRIMARY3
See Also:
Constant Field Values

PROP_SECONDARY1

public static final java.lang.String PROP_SECONDARY1
See Also:
Constant Field Values

PROP_SECONDARY2

public static final java.lang.String PROP_SECONDARY2
See Also:
Constant Field Values

PROP_SECONDARY3

public static final java.lang.String PROP_SECONDARY3
See Also:
Constant Field Values

PROP_FONT_SIZE

public static final java.lang.String PROP_FONT_SIZE
See Also:
Constant Field Values

PROP_LINK_COLORS

public static final java.lang.String PROP_LINK_COLORS
See Also:
Constant Field Values

PROP_LINK_COLORS_DIFF

public static final java.lang.String PROP_LINK_COLORS_DIFF
See Also:
Constant Field Values

SYSTEM_ID

public static final java.lang.String SYSTEM_ID
See Also:
Constant Field Values
Method Detail

installTheme

public static void installTheme()
Method used to create and install the ChangeableMetalTheme. This needs to be called whenever a property in the theme changes.


updateUIProperties

public static void updateUIProperties()

addTopLevelComponent

public static void addTopLevelComponent(java.awt.Component component)

removeTopLevelComponent

public static void removeTopLevelComponent(java.awt.Component component)

updateTopLevelComponents

public static void updateTopLevelComponents()

getName

public java.lang.String getName()

getWhite

public javax.swing.plaf.ColorUIResource getWhite()

getBlack

public javax.swing.plaf.ColorUIResource getBlack()

getDesktopColor

public javax.swing.plaf.ColorUIResource getDesktopColor()

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()

getControlTextFont

public javax.swing.plaf.FontUIResource getControlTextFont()

getSystemTextFont

public javax.swing.plaf.FontUIResource getSystemTextFont()

getUserTextFont

public javax.swing.plaf.FontUIResource getUserTextFont()

getMenuTextFont

public javax.swing.plaf.FontUIResource getMenuTextFont()

getWindowTitleFont

public javax.swing.plaf.FontUIResource getWindowTitleFont()

getSubTextFont

public javax.swing.plaf.FontUIResource getSubTextFont()

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.