FileDocCategorySizeDatePackage
ContrastMetalTheme.javaAPI DocExample3320Sat Sep 12 03:01:00 BST 1998None

ContrastMetalTheme

public class ContrastMetalTheme extends DefaultMetalTheme
This class describes a higher-contrast Metal Theme.
version
1.7 02/05/98
author
Michael C. Albers

Fields Summary
private final ColorUIResource
primary1
private final ColorUIResource
primary2
private final ColorUIResource
primary3
private final ColorUIResource
primaryHighlight
private final ColorUIResource
secondary2
private final ColorUIResource
secondary3
private final ColorUIResource
controlHighlight
Constructors Summary
Methods Summary
public voidaddCustomEntriesToTable(UIDefaults table)


        Border blackLineBorder = new BorderUIResource(new LineBorder( getBlack() ));
        Border whiteLineBorder = new BorderUIResource(new LineBorder( getWhite() ));

        table.put( "ToolTip.border", blackLineBorder);
	table.put( "TitledBorder.border", blackLineBorder);
        table.put( "Table.focusCellHighlightBorder", whiteLineBorder);
        table.put( "Table.focusCellForeground", getWhite());


    
public ColorUIResourcegetAcceleratorForeground()

 return getBlack(); 
public ColorUIResourcegetAcceleratorSelectedForeground()

 return getWhite(); 
public ColorUIResourcegetControlHighlight()

 return super.getSecondary3(); 
public ColorUIResourcegetFocusColor()

 return getBlack(); 
public ColorUIResourcegetHighlightedTextColor()

 return getWhite(); 
public ColorUIResourcegetMenuSelectedBackground()

 return getBlack(); 
public ColorUIResourcegetMenuSelectedForeground()

 return getWhite(); 
public java.lang.StringgetName()

 return "Contrast"; 
protected ColorUIResourcegetPrimary1()


        return primary1; 
protected ColorUIResourcegetPrimary2()

 return primary2; 
protected ColorUIResourcegetPrimary3()

 return primary3; 
public ColorUIResourcegetPrimaryControlHighlight()

 return primaryHighlight;
protected ColorUIResourcegetSecondary2()

 return secondary2; 
protected ColorUIResourcegetSecondary3()

 return secondary3; 
public ColorUIResourcegetTextHighlightColor()

 return getBlack();