de.cbse.jeasy
Class JEXMLMetalTheme

java.lang.Object
  extended by javax.swing.plaf.metal.MetalTheme
      extended by javax.swing.plaf.metal.DefaultMetalTheme
          extended by de.cbse.jeasy.JEXMLMetalTheme

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

A class that extends DefaultMetalTheme. It is created by JETheme.
See JETheme for more details.

Author:
Harry Pfohl

Constructor Summary
JEXMLMetalTheme(JETheme theme, java.util.HashMap hm)
          Reads the properties out of a hashMap.
 
Method Summary
 javax.swing.plaf.ColorUIResource getAcceleratorForeground()
           
 javax.swing.plaf.ColorUIResource getAcceleratorSelectedForeground()
           
 javax.swing.plaf.ColorUIResource getBlack()
           
 javax.swing.plaf.ColorUIResource getColorUIResource(java.awt.Color c)
          Gets the ColorUIResource of a Color
 javax.swing.plaf.ColorUIResource getControl()
           
 javax.swing.plaf.ColorUIResource getControlDarkShadow()
           
 javax.swing.plaf.ColorUIResource getControlDisabled()
           
 javax.swing.plaf.ColorUIResource getControlHighlight()
           
 javax.swing.plaf.ColorUIResource getControlInfo()
           
 javax.swing.plaf.ColorUIResource getControlShadow()
           
 javax.swing.plaf.ColorUIResource getControlTextColor()
           
 javax.swing.plaf.FontUIResource getControlTextFont()
           
 javax.swing.plaf.ColorUIResource getDesktopColor()
           
 javax.swing.plaf.ColorUIResource getFocusColor()
           
 javax.swing.plaf.ColorUIResource getHighlightedTextColor()
           
 javax.swing.plaf.ColorUIResource getInactiveControlTextColor()
           
 javax.swing.plaf.ColorUIResource getInactiveSystemTextColor()
           
 javax.swing.plaf.ColorUIResource getMenuBackground()
           
 javax.swing.plaf.ColorUIResource getMenuDisabledForeground()
           
 javax.swing.plaf.ColorUIResource getMenuForeground()
           
 javax.swing.plaf.ColorUIResource getMenuSelectedBackground()
           
 javax.swing.plaf.ColorUIResource getMenuSelectedForeground()
           
 javax.swing.plaf.FontUIResource getMenuTextFont()
           
 javax.swing.plaf.ColorUIResource getPrimary1()
           
 javax.swing.plaf.ColorUIResource getPrimary2()
           
 javax.swing.plaf.ColorUIResource getPrimary3()
           
 javax.swing.plaf.ColorUIResource getPrimaryControl()
           
 javax.swing.plaf.ColorUIResource getPrimaryControlDarkShadow()
           
 javax.swing.plaf.ColorUIResource getPrimaryControlHighlight()
           
 javax.swing.plaf.ColorUIResource getPrimaryControlInfo()
           
 javax.swing.plaf.ColorUIResource getPrimaryControlShadow()
           
 javax.swing.plaf.ColorUIResource getSecondary1()
           
 javax.swing.plaf.ColorUIResource getSecondary2()
           
 javax.swing.plaf.ColorUIResource getSecondary3()
           
 javax.swing.plaf.ColorUIResource getSeparatorBackground()
           
 javax.swing.plaf.ColorUIResource getSeparatorForeground()
           
 javax.swing.plaf.FontUIResource getSubTextFont()
           
 javax.swing.plaf.ColorUIResource getSystemTextColor()
           
 javax.swing.plaf.FontUIResource getSystemTextFont()
           
 javax.swing.plaf.ColorUIResource getTextHighlightColor()
           
 javax.swing.plaf.ColorUIResource getUserTextColor()
           
 javax.swing.plaf.FontUIResource getUserTextFont()
           
 javax.swing.plaf.ColorUIResource getWhite()
           
 javax.swing.plaf.ColorUIResource getWindowBackground()
           
 javax.swing.plaf.ColorUIResource getWindowTitleBackground()
           
 javax.swing.plaf.FontUIResource getWindowTitleFont()
           
 javax.swing.plaf.ColorUIResource getWindowTitleForeground()
           
 javax.swing.plaf.ColorUIResource getWindowTitleInactiveBackground()
           
 javax.swing.plaf.ColorUIResource getWindowTitleInactiveForeground()
           
 void update(java.util.HashMap hm)
          Reads the properties from a XML string and sets the colors and fonts.
 
Methods inherited from class javax.swing.plaf.metal.DefaultMetalTheme
getName
 
Methods inherited from class javax.swing.plaf.metal.MetalTheme
addCustomEntriesToTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JEXMLMetalTheme

public JEXMLMetalTheme(JETheme theme,
                       java.util.HashMap hm)
Reads the properties out of a hashMap.

Parameters:
hm -
Method Detail

update

public void update(java.util.HashMap hm)
Reads the properties from a XML string and sets the colors and fonts.

Parameters:
s - contains properties and values
See Also:
JE#PropertyString

getAcceleratorForeground

public javax.swing.plaf.ColorUIResource getAcceleratorForeground()
Overrides:
getAcceleratorForeground in class javax.swing.plaf.metal.MetalTheme
Returns:

getAcceleratorSelectedForeground

public javax.swing.plaf.ColorUIResource getAcceleratorSelectedForeground()
Overrides:
getAcceleratorSelectedForeground in class javax.swing.plaf.metal.MetalTheme
Returns:

getBlack

public javax.swing.plaf.ColorUIResource getBlack()
Overrides:
getBlack in class javax.swing.plaf.metal.MetalTheme
Returns:

getControlDarkShadow

public javax.swing.plaf.ColorUIResource getControlDarkShadow()
Overrides:
getControlDarkShadow in class javax.swing.plaf.metal.MetalTheme
Returns:

getControlDisabled

public javax.swing.plaf.ColorUIResource getControlDisabled()
Overrides:
getControlDisabled in class javax.swing.plaf.metal.MetalTheme
Returns:

getControlHighlight

public javax.swing.plaf.ColorUIResource getControlHighlight()
Overrides:
getControlHighlight in class javax.swing.plaf.metal.MetalTheme
Returns:

getControlInfo

public javax.swing.plaf.ColorUIResource getControlInfo()
Overrides:
getControlInfo in class javax.swing.plaf.metal.MetalTheme
Returns:

getControl

public javax.swing.plaf.ColorUIResource getControl()
Overrides:
getControl in class javax.swing.plaf.metal.MetalTheme
Returns:

getControlShadow

public javax.swing.plaf.ColorUIResource getControlShadow()
Overrides:
getControlShadow in class javax.swing.plaf.metal.MetalTheme
Returns:

getControlTextColor

public javax.swing.plaf.ColorUIResource getControlTextColor()
Overrides:
getControlTextColor in class javax.swing.plaf.metal.MetalTheme
Returns:

getControlTextFont

public javax.swing.plaf.FontUIResource getControlTextFont()
Overrides:
getControlTextFont in class javax.swing.plaf.metal.DefaultMetalTheme
Returns:

getDesktopColor

public javax.swing.plaf.ColorUIResource getDesktopColor()
Overrides:
getDesktopColor in class javax.swing.plaf.metal.MetalTheme
Returns:

getFocusColor

public javax.swing.plaf.ColorUIResource getFocusColor()
Overrides:
getFocusColor in class javax.swing.plaf.metal.MetalTheme
Returns:

getHighlightedTextColor

public javax.swing.plaf.ColorUIResource getHighlightedTextColor()
Overrides:
getHighlightedTextColor in class javax.swing.plaf.metal.MetalTheme
Returns:

getInactiveControlTextColor

public javax.swing.plaf.ColorUIResource getInactiveControlTextColor()
Overrides:
getInactiveControlTextColor in class javax.swing.plaf.metal.MetalTheme
Returns:

getInactiveSystemTextColor

public javax.swing.plaf.ColorUIResource getInactiveSystemTextColor()
Overrides:
getInactiveSystemTextColor in class javax.swing.plaf.metal.MetalTheme
Returns:

getMenuBackground

public javax.swing.plaf.ColorUIResource getMenuBackground()
Overrides:
getMenuBackground in class javax.swing.plaf.metal.MetalTheme
Returns:

getMenuDisabledForeground

public javax.swing.plaf.ColorUIResource getMenuDisabledForeground()
Overrides:
getMenuDisabledForeground in class javax.swing.plaf.metal.MetalTheme
Returns:

getMenuForeground

public javax.swing.plaf.ColorUIResource getMenuForeground()
Overrides:
getMenuForeground in class javax.swing.plaf.metal.MetalTheme
Returns:

getMenuSelectedBackground

public javax.swing.plaf.ColorUIResource getMenuSelectedBackground()
Overrides:
getMenuSelectedBackground in class javax.swing.plaf.metal.MetalTheme
Returns:

getMenuSelectedForeground

public javax.swing.plaf.ColorUIResource getMenuSelectedForeground()
Overrides:
getMenuSelectedForeground in class javax.swing.plaf.metal.MetalTheme
Returns:

getMenuTextFont

public javax.swing.plaf.FontUIResource getMenuTextFont()
Overrides:
getMenuTextFont in class javax.swing.plaf.metal.DefaultMetalTheme
Returns:

getPrimary1

public javax.swing.plaf.ColorUIResource getPrimary1()
Overrides:
getPrimary1 in class javax.swing.plaf.metal.DefaultMetalTheme
Returns:

getPrimary2

public javax.swing.plaf.ColorUIResource getPrimary2()
Overrides:
getPrimary2 in class javax.swing.plaf.metal.DefaultMetalTheme
Returns:

getPrimary3

public javax.swing.plaf.ColorUIResource getPrimary3()
Overrides:
getPrimary3 in class javax.swing.plaf.metal.DefaultMetalTheme
Returns:

getPrimaryControlDarkShadow

public javax.swing.plaf.ColorUIResource getPrimaryControlDarkShadow()
Overrides:
getPrimaryControlDarkShadow in class javax.swing.plaf.metal.MetalTheme
Returns:

getPrimaryControlHighlight

public javax.swing.plaf.ColorUIResource getPrimaryControlHighlight()
Overrides:
getPrimaryControlHighlight in class javax.swing.plaf.metal.MetalTheme
Returns:

getPrimaryControlInfo

public javax.swing.plaf.ColorUIResource getPrimaryControlInfo()
Overrides:
getPrimaryControlInfo in class javax.swing.plaf.metal.MetalTheme
Returns:

getPrimaryControl

public javax.swing.plaf.ColorUIResource getPrimaryControl()
Overrides:
getPrimaryControl in class javax.swing.plaf.metal.MetalTheme
Returns:

getPrimaryControlShadow

public javax.swing.plaf.ColorUIResource getPrimaryControlShadow()
Overrides:
getPrimaryControlShadow in class javax.swing.plaf.metal.MetalTheme
Returns:

getSecondary1

public javax.swing.plaf.ColorUIResource getSecondary1()
Overrides:
getSecondary1 in class javax.swing.plaf.metal.DefaultMetalTheme
Returns:

getSecondary2

public javax.swing.plaf.ColorUIResource getSecondary2()
Overrides:
getSecondary2 in class javax.swing.plaf.metal.DefaultMetalTheme
Returns:

getSecondary3

public javax.swing.plaf.ColorUIResource getSecondary3()
Overrides:
getSecondary3 in class javax.swing.plaf.metal.DefaultMetalTheme
Returns:

getSeparatorBackground

public javax.swing.plaf.ColorUIResource getSeparatorBackground()
Overrides:
getSeparatorBackground in class javax.swing.plaf.metal.MetalTheme
Returns:

getSeparatorForeground

public javax.swing.plaf.ColorUIResource getSeparatorForeground()
Overrides:
getSeparatorForeground in class javax.swing.plaf.metal.MetalTheme
Returns:

getSubTextFont

public javax.swing.plaf.FontUIResource getSubTextFont()
Overrides:
getSubTextFont in class javax.swing.plaf.metal.DefaultMetalTheme
Returns:

getSystemTextColor

public javax.swing.plaf.ColorUIResource getSystemTextColor()
Overrides:
getSystemTextColor in class javax.swing.plaf.metal.MetalTheme
Returns:

getSystemTextFont

public javax.swing.plaf.FontUIResource getSystemTextFont()
Overrides:
getSystemTextFont in class javax.swing.plaf.metal.DefaultMetalTheme
Returns:

getTextHighlightColor

public javax.swing.plaf.ColorUIResource getTextHighlightColor()
Overrides:
getTextHighlightColor in class javax.swing.plaf.metal.MetalTheme
Returns:

getUserTextColor

public javax.swing.plaf.ColorUIResource getUserTextColor()
Overrides:
getUserTextColor in class javax.swing.plaf.metal.MetalTheme
Returns:

getUserTextFont

public javax.swing.plaf.FontUIResource getUserTextFont()
Overrides:
getUserTextFont in class javax.swing.plaf.metal.DefaultMetalTheme
Returns:

getWhite

public javax.swing.plaf.ColorUIResource getWhite()
Overrides:
getWhite in class javax.swing.plaf.metal.MetalTheme
Returns:

getWindowBackground

public javax.swing.plaf.ColorUIResource getWindowBackground()
Overrides:
getWindowBackground in class javax.swing.plaf.metal.MetalTheme
Returns:

getWindowTitleBackground

public javax.swing.plaf.ColorUIResource getWindowTitleBackground()
Overrides:
getWindowTitleBackground in class javax.swing.plaf.metal.MetalTheme
Returns:

getWindowTitleForeground

public javax.swing.plaf.ColorUIResource getWindowTitleForeground()
Overrides:
getWindowTitleForeground in class javax.swing.plaf.metal.MetalTheme
Returns:

getWindowTitleFont

public javax.swing.plaf.FontUIResource getWindowTitleFont()
Overrides:
getWindowTitleFont in class javax.swing.plaf.metal.DefaultMetalTheme
Returns:

getWindowTitleInactiveBackground

public javax.swing.plaf.ColorUIResource getWindowTitleInactiveBackground()
Overrides:
getWindowTitleInactiveBackground in class javax.swing.plaf.metal.MetalTheme
Returns:

getWindowTitleInactiveForeground

public javax.swing.plaf.ColorUIResource getWindowTitleInactiveForeground()
Overrides:
getWindowTitleInactiveForeground in class javax.swing.plaf.metal.MetalTheme
Returns:

getColorUIResource

public javax.swing.plaf.ColorUIResource getColorUIResource(java.awt.Color c)
Gets the ColorUIResource of a Color

Parameters:
c -
Returns: