gov.nih.nlm.swing
Class CenteredBackgroundBorder

java.lang.Object
  extended bygov.nih.nlm.swing.CenteredBackgroundBorder
All Implemented Interfaces:
Border

public class CenteredBackgroundBorder
extends Object
implements Border

Used to create a background image on a component.

Author:
Brian Carlsen, Owen J. Carlsen, Yun-Jung Kim

Constructor Summary
CenteredBackgroundBorder(BufferedImage image)
           
 
Method Summary
 Insets getBorderInsets(Component c)
           
 boolean isBorderOpaque()
           
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CenteredBackgroundBorder

public CenteredBackgroundBorder(BufferedImage image)
Method Detail

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface Border

getBorderInsets

public Insets getBorderInsets(Component c)
Specified by:
getBorderInsets in interface Border

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface Border


Copyright ©2005