FileDocCategorySizeDatePackage
BorderUIResource.javaAPI DocJava SE 5 API7169Fri Aug 26 14:58:02 BST 2005javax.swing.plaf

BorderUIResource

public class BorderUIResource extends Object implements Serializable, Border, UIResource

Fields Summary
static Border
etched
static Border
loweredBevel
static Border
raisedBevel
static Border
blackLine
private Border
delegate
Constructors Summary
public BorderUIResource(Border delegate)
Creates a UIResource border object which wraps an existing Border instance.

param
delegate the border being wrapped

        if (delegate == null) {
            throw new IllegalArgumentException("null border delegate argument");
        }
        this.delegate = delegate;
    
Methods Summary
public static javax.swing.border.BordergetBlackLineBorderUIResource()

        if (blackLine == null) {
            blackLine = new LineBorderUIResource(Color.black);
        }
        return blackLine;
    
public java.awt.InsetsgetBorderInsets(java.awt.Component c)

        return delegate.getBorderInsets(c);
    
public static javax.swing.border.BordergetEtchedBorderUIResource()

        if (etched == null) {
            etched = new EtchedBorderUIResource();
        }
        return etched;
    
public static javax.swing.border.BordergetLoweredBevelBorderUIResource()

        if (loweredBevel == null) {
            loweredBevel = new BevelBorderUIResource(BevelBorder.LOWERED);
        }
        return loweredBevel;
    
public static javax.swing.border.BordergetRaisedBevelBorderUIResource()

        if (raisedBevel == null) {
            raisedBevel = new BevelBorderUIResource(BevelBorder.RAISED);
        }
        return raisedBevel;
    
public booleanisBorderOpaque()

 
        return delegate.isBorderOpaque();
    
public voidpaintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)

        
        delegate.paintBorder(c, g, x, y, width, height);