APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing.plaf.metal

pack-priv Class MetalHighContrastTheme

extends DefaultMetalTheme
Class Inheritance
Imports
javax.swing.plaf.*, javax.swing.plaf.basic.*, javax.swing.plaf.metal.*, javax.swing.*, javax.swing.border.*, java.awt.*

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

Field Summary

Modifier and TypeField and Description
private static final ColorUIResource
private static final ColorUIResource
private static final ColorUIResource
private static final ColorUIResource
private static final ColorUIResource
private static final ColorUIResource

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
addCustomEntriesToTable(UIDefaults table)

Overrides javax.swing.plaf.metal.MetalTheme.addCustomEntriesToTable.

Adds values specific to this theme to the defaults table.

public ColorUIResource
getAcceleratorForeground()

Overrides javax.swing.plaf.metal.MetalTheme.getAcceleratorForeground.

Returns the accelerator foreground color.

public ColorUIResource
public ColorUIResource
getControlHighlight()

Overrides javax.swing.plaf.metal.MetalTheme.getControlHighlight.

Returns the control highlight color.

public ColorUIResource
public ColorUIResource
public ColorUIResource
getMenuSelectedBackground()

Overrides javax.swing.plaf.metal.MetalTheme.getMenuSelectedBackground.

Returns the menu selected background color.

public ColorUIResource
getMenuSelectedForeground()

Overrides javax.swing.plaf.metal.MetalTheme.getMenuSelectedForeground.

Returns the menu selected foreground color.

public String
getName()

Overrides javax.swing.plaf.metal.DefaultMetalTheme.getName.

Returns the name of this theme.

protected ColorUIResource
getPrimary1()

Overrides javax.swing.plaf.metal.DefaultMetalTheme.getPrimary1.

Returns the primary 1 color.

protected ColorUIResource
getPrimary2()

Overrides javax.swing.plaf.metal.DefaultMetalTheme.getPrimary2.

Returns the primary 2 color.

protected ColorUIResource
getPrimary3()

Overrides javax.swing.plaf.metal.DefaultMetalTheme.getPrimary3.

Returns the primary 3 color.

public ColorUIResource
getPrimaryControlHighlight()

Overrides javax.swing.plaf.metal.MetalTheme.getPrimaryControlHighlight.

Returns the primary control highlight color.

protected ColorUIResource
getSecondary2()

Overrides javax.swing.plaf.metal.DefaultMetalTheme.getSecondary2.

Returns the secondary 2 color.

protected ColorUIResource
getSecondary3()

Overrides javax.swing.plaf.metal.DefaultMetalTheme.getSecondary3.

Returns the secondary 3 color.

public ColorUIResource
pack-priv boolean
isSystemTheme()

Overrides javax.swing.plaf.metal.DefaultMetalTheme.isSystemTheme.

Returns true if this is a theme provided by the core platform.

Inherited from javax.swing.plaf.metal.DefaultMetalTheme:
getControlTextFontgetDefaultFontNamegetDefaultFontSizegetDefaultFontStylegetDefaultPropertyNamegetMenuTextFontgetSecondary1getSubTextFontgetSystemTextFontgetUserTextFontgetWindowTitleFontinstall

Field Detail

primary1back to summary
private static final ColorUIResource primary1

Hides javax.swing.plaf.metal.DefaultMetalTheme.primary1.

primary2back to summary
private static final ColorUIResource primary2

Hides javax.swing.plaf.metal.DefaultMetalTheme.primary2.

primary3back to summary
private static final ColorUIResource primary3

Hides javax.swing.plaf.metal.DefaultMetalTheme.primary3.

primaryHighlightback to summary
private static final ColorUIResource primaryHighlight
secondary2back to summary
private static final ColorUIResource secondary2

Hides javax.swing.plaf.metal.DefaultMetalTheme.secondary2.

secondary3back to summary
private static final ColorUIResource secondary3

Hides javax.swing.plaf.metal.DefaultMetalTheme.secondary3.

Constructor Detail

MetalHighContrastThemeback to summary
pack-priv MetalHighContrastTheme()

Method Detail

addCustomEntriesToTableback to summary
public void addCustomEntriesToTable(UIDefaults table)

Overrides javax.swing.plaf.metal.MetalTheme.addCustomEntriesToTable.

Doc from javax.swing.plaf.metal.MetalTheme.addCustomEntriesToTable.

Adds values specific to this theme to the defaults table. This method is invoked when the look and feel defaults are obtained from MetalLookAndFeel.

This implementation does nothing; it is provided for subclasses that wish to customize the defaults table.

getAcceleratorForegroundback to summary
public ColorUIResource getAcceleratorForeground()

Overrides javax.swing.plaf.metal.MetalTheme.getAcceleratorForeground.

Doc from javax.swing.plaf.metal.MetalTheme.getAcceleratorForeground.

Returns the accelerator foreground color. This returns the value of getPrimary1().

getAcceleratorSelectedForegroundback to summary
public ColorUIResource getAcceleratorSelectedForeground()

Overrides javax.swing.plaf.metal.MetalTheme.getAcceleratorSelectedForeground.

Doc from javax.swing.plaf.metal.MetalTheme.getAcceleratorSelectedForeground.

Returns the accelerator selected foreground color. This returns the value of getBlack().

getControlHighlightback to summary
public ColorUIResource getControlHighlight()

Overrides javax.swing.plaf.metal.MetalTheme.getControlHighlight.

Doc from javax.swing.plaf.metal.MetalTheme.getControlHighlight.

Returns the control highlight color. This returns the value of getWhite().

getFocusColorback to summary
public ColorUIResource getFocusColor()

Overrides javax.swing.plaf.metal.MetalTheme.getFocusColor.

Doc from javax.swing.plaf.metal.MetalTheme.getFocusColor.

Returns the focus color. This returns the value of getPrimary2().

getHighlightedTextColorback to summary
public ColorUIResource getHighlightedTextColor()

Overrides javax.swing.plaf.metal.MetalTheme.getHighlightedTextColor.

Doc from javax.swing.plaf.metal.MetalTheme.getHighlightedTextColor.

Returns the highlighted text color. This returns the value of getControlTextColor().

getMenuSelectedBackgroundback to summary
public ColorUIResource getMenuSelectedBackground()

Overrides javax.swing.plaf.metal.MetalTheme.getMenuSelectedBackground.

Doc from javax.swing.plaf.metal.MetalTheme.getMenuSelectedBackground.

Returns the menu selected background color. This returns the value of getPrimary2().

getMenuSelectedForegroundback to summary
public ColorUIResource getMenuSelectedForeground()

Overrides javax.swing.plaf.metal.MetalTheme.getMenuSelectedForeground.

Doc from javax.swing.plaf.metal.MetalTheme.getMenuSelectedForeground.

Returns the menu selected foreground color. This returns the value of getBlack().

getNameback to summary
public String getName()

Overrides javax.swing.plaf.metal.DefaultMetalTheme.getName.

Doc from javax.swing.plaf.metal.DefaultMetalTheme.getName.

Returns the name of this theme. This returns "Steel".

getPrimary1back to summary
protected ColorUIResource getPrimary1()

Overrides javax.swing.plaf.metal.DefaultMetalTheme.getPrimary1.

Doc from javax.swing.plaf.metal.DefaultMetalTheme.getPrimary1.

Returns the primary 1 color. This returns a color with rgb values of 102, 102, and 153, respectively.

getPrimary2back to summary
protected ColorUIResource getPrimary2()

Overrides javax.swing.plaf.metal.DefaultMetalTheme.getPrimary2.

Doc from javax.swing.plaf.metal.DefaultMetalTheme.getPrimary2.

Returns the primary 2 color. This returns a color with rgb values of 153, 153, 204, respectively.

getPrimary3back to summary
protected ColorUIResource getPrimary3()

Overrides javax.swing.plaf.metal.DefaultMetalTheme.getPrimary3.

Doc from javax.swing.plaf.metal.DefaultMetalTheme.getPrimary3.

Returns the primary 3 color. This returns a color with rgb values 204, 204, 255, respectively.

getPrimaryControlHighlightback to summary
public ColorUIResource getPrimaryControlHighlight()

Overrides javax.swing.plaf.metal.MetalTheme.getPrimaryControlHighlight.

Doc from javax.swing.plaf.metal.MetalTheme.getPrimaryControlHighlight.

Returns the primary control highlight color. This returns the value of getWhite().

getSecondary2back to summary
protected ColorUIResource getSecondary2()

Overrides javax.swing.plaf.metal.DefaultMetalTheme.getSecondary2.

Doc from javax.swing.plaf.metal.DefaultMetalTheme.getSecondary2.

Returns the secondary 2 color. This returns a color with rgb values 153, 153, and 153, respectively.

getSecondary3back to summary
protected ColorUIResource getSecondary3()

Overrides javax.swing.plaf.metal.DefaultMetalTheme.getSecondary3.

Doc from javax.swing.plaf.metal.DefaultMetalTheme.getSecondary3.

Returns the secondary 3 color. This returns a color with rgb values 204, 204, and 204, respectively.

getTextHighlightColorback to summary
public ColorUIResource getTextHighlightColor()

Overrides javax.swing.plaf.metal.MetalTheme.getTextHighlightColor.

Doc from javax.swing.plaf.metal.MetalTheme.getTextHighlightColor.

Returns the text highlight color. This returns the value of getPrimary3().

isSystemThemeback to summary
pack-priv boolean isSystemTheme()

Overrides javax.swing.plaf.metal.DefaultMetalTheme.isSystemTheme.

Returns true if this is a theme provided by the core platform.