FileDocCategorySizeDatePackage
MetalBorders.javaAPI DocJava SE 5 API34463Fri Aug 26 14:58:06 BST 2005javax.swing.plaf.metal

MetalBorders

public class MetalBorders extends Object
Factory object that can vend Borders appropriate for the metal L & F.
author
Steve Wilson
version
1.39 04/16/04

Fields Summary
static Object
NO_BUTTON_ROLLOVER
Client property indicating the button shouldn't provide a rollover indicator. Only used with the Ocean theme.
private static Border
buttonBorder
private static Border
textBorder
private static Border
textFieldBorder
private static Border
toggleButtonBorder
Constructors Summary
Methods Summary
public static javax.swing.border.BordergetButtonBorder()
Returns a border instance for a JButton

since
1.3

	if (buttonBorder == null) {
	    buttonBorder = new BorderUIResource.CompoundBorderUIResource(
						   new MetalBorders.ButtonBorder(),
						   new BasicBorders.MarginBorder());
	}
	return buttonBorder;
    
public static javax.swing.border.BordergetDesktopIconBorder()
Returns a border instance for a Desktop Icon

since
1.3

	return new BorderUIResource.CompoundBorderUIResource(
                                          new LineBorder(MetalLookAndFeel.getControlDarkShadow(), 1),
                                          new MatteBorder (2,2,1,2, MetalLookAndFeel.getControl()));
    
public static javax.swing.border.BordergetTextBorder()
Returns a border instance for a text component

since
1.3

	if (textBorder == null) {
	    textBorder = new BorderUIResource.CompoundBorderUIResource(
						   new MetalBorders.Flush3DBorder(),
						   new BasicBorders.MarginBorder());
	}
	return textBorder;
    
public static javax.swing.border.BordergetTextFieldBorder()
Returns a border instance for a JTextField

since
1.3

	if (textFieldBorder == null) {
	    textFieldBorder = new BorderUIResource.CompoundBorderUIResource(
						   new MetalBorders.TextFieldBorder(),
						   new BasicBorders.MarginBorder());
	}
	return textFieldBorder;
    
public static javax.swing.border.BordergetToggleButtonBorder()
Returns a border instance for a JToggleButton

since
1.3

	if (toggleButtonBorder == null) {
	    toggleButtonBorder = new BorderUIResource.CompoundBorderUIResource(
						   new MetalBorders.ToggleButtonBorder(),
						   new BasicBorders.MarginBorder());
	}
	return toggleButtonBorder;
    
static javax.swing.border.BordergetToolBarNonrolloverBorder()

        if (MetalLookAndFeel.usingOcean()) {
            new CompoundBorder(
                new MetalBorders.ButtonBorder(), 
                new MetalBorders.RolloverMarginBorder());
        }
	return new CompoundBorder(new MetalBorders.ButtonBorder(),
				  new MetalBorders.RolloverMarginBorder());
    
static javax.swing.border.BordergetToolBarRolloverBorder()

        if (MetalLookAndFeel.usingOcean()) {
            return new CompoundBorder(
                new MetalBorders.ButtonBorder(), 
                new MetalBorders.RolloverMarginBorder());
        }
	return new CompoundBorder(new MetalBorders.RolloverButtonBorder(), 
				  new MetalBorders.RolloverMarginBorder());