javax.swing.plaf.metal
Class MetalHighContrastTheme

java.lang.Object
  extended byjavax.swing.plaf.metal.MetalTheme
      extended byjavax.swing.plaf.metal.DefaultMetalTheme
          extended byjavax.swing.plaf.metal.MetalHighContrastTheme

class MetalHighContrastTheme
extends DefaultMetalTheme

A high contrast theme. This is used on Windows if the system property awt.highContrast.on is true.

Author:
Michael C. Albers

Nested Class Summary
 
Nested classes inherited from class javax.swing.plaf.metal.DefaultMetalTheme
 
Field Summary
private static ColorUIResource controlHighlight
           
private static ColorUIResource primary1
           
private static ColorUIResource primary2
           
private static ColorUIResource primary3
           
private static ColorUIResource primaryHighlight
           
private static ColorUIResource secondary2
           
private static ColorUIResource secondary3
           
 
Fields inherited from class javax.swing.plaf.metal.DefaultMetalTheme
 
Fields inherited from class javax.swing.plaf.metal.MetalTheme
CONTROL_TEXT_FONT, MENU_TEXT_FONT, SUB_TEXT_FONT, SYSTEM_TEXT_FONT, USER_TEXT_FONT, WINDOW_TITLE_FONT
 
Constructor Summary
(package private) MetalHighContrastTheme()
           
 
Method Summary
 void addCustomEntriesToTable(UIDefaults table)
           
 ColorUIResource getAcceleratorForeground()
           
 ColorUIResource getAcceleratorSelectedForeground()
           
 ColorUIResource getControlHighlight()
           
 ColorUIResource getFocusColor()
           
 ColorUIResource getHighlightedTextColor()
           
 ColorUIResource getMenuSelectedBackground()
           
 ColorUIResource getMenuSelectedForeground()
           
 String getName()
           
protected  ColorUIResource getPrimary1()
           
protected  ColorUIResource getPrimary2()
           
protected  ColorUIResource getPrimary3()
           
 ColorUIResource getPrimaryControlHighlight()
           
protected  ColorUIResource getSecondary2()
           
protected  ColorUIResource getSecondary3()
           
 ColorUIResource getTextHighlightColor()
           
(package private)  boolean isSystemTheme()
          Returns true if this is a theme provided by the core platform.
 
Methods inherited from class javax.swing.plaf.metal.DefaultMetalTheme
getControlTextFont, getDefaultFontName, getDefaultFontSize, getDefaultFontStyle, getDefaultPropertyName, getMenuTextFont, getSecondary1, getSubTextFont, getSystemTextFont, getUserTextFont, getWindowTitleFont, install
 
Methods inherited from class javax.swing.plaf.metal.MetalTheme
getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlInfo, getControlShadow, getControlTextColor, getDesktopColor, getInactiveControlTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSystemTextColor, getUserTextColor, 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

primary1

private static final ColorUIResource primary1

primary2

private static final ColorUIResource primary2

primary3

private static final ColorUIResource primary3

primaryHighlight

private static final ColorUIResource primaryHighlight

secondary2

private static final ColorUIResource secondary2

secondary3

private static final ColorUIResource secondary3

controlHighlight

private static final ColorUIResource controlHighlight
Constructor Detail

MetalHighContrastTheme

MetalHighContrastTheme()
Method Detail

getName

public String getName()
Overrides:
getName in class DefaultMetalTheme

getPrimary1

protected ColorUIResource getPrimary1()
Overrides:
getPrimary1 in class DefaultMetalTheme

getPrimary2

protected ColorUIResource getPrimary2()
Overrides:
getPrimary2 in class DefaultMetalTheme

getPrimary3

protected ColorUIResource getPrimary3()
Overrides:
getPrimary3 in class DefaultMetalTheme

getPrimaryControlHighlight

public ColorUIResource getPrimaryControlHighlight()
Overrides:
getPrimaryControlHighlight in class MetalTheme

getSecondary2

protected ColorUIResource getSecondary2()
Overrides:
getSecondary2 in class DefaultMetalTheme

getSecondary3

protected ColorUIResource getSecondary3()
Overrides:
getSecondary3 in class DefaultMetalTheme

getControlHighlight

public ColorUIResource getControlHighlight()
Overrides:
getControlHighlight in class MetalTheme

getFocusColor

public ColorUIResource getFocusColor()
Overrides:
getFocusColor in class MetalTheme

getTextHighlightColor

public ColorUIResource getTextHighlightColor()
Overrides:
getTextHighlightColor in class MetalTheme

getHighlightedTextColor

public ColorUIResource getHighlightedTextColor()
Overrides:
getHighlightedTextColor in class MetalTheme

getMenuSelectedBackground

public ColorUIResource getMenuSelectedBackground()
Overrides:
getMenuSelectedBackground in class MetalTheme

getMenuSelectedForeground

public ColorUIResource getMenuSelectedForeground()
Overrides:
getMenuSelectedForeground in class MetalTheme

getAcceleratorForeground

public ColorUIResource getAcceleratorForeground()
Overrides:
getAcceleratorForeground in class MetalTheme

getAcceleratorSelectedForeground

public ColorUIResource getAcceleratorSelectedForeground()
Overrides:
getAcceleratorSelectedForeground in class MetalTheme

addCustomEntriesToTable

public void addCustomEntriesToTable(UIDefaults table)
Overrides:
addCustomEntriesToTable in class MetalTheme

isSystemTheme

boolean isSystemTheme()
Returns true if this is a theme provided by the core platform.

Overrides:
isSystemTheme in class DefaultMetalTheme