TopBorder Class

com.bea.ide.util.swing
TopBorder Class

public class TopBorder

    extends AbstractBorder

This class provides a border object that paints a one pixel border at the top of an object


Hierarchy
Object
  AbstractBorder
    TopBorder
All Implemented Interfaces

Border, Serializable

Constructor Summary

TopBorder()

 

Method Summary

public Insets
getBorderInsets(Component c)
public Insets
getBorderInsets(Component c, Insets insets)
public void
paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Paints a 1 pixel high border along the top of the component.
 
Methods from  javax.swing.border.AbstractBorder
getInteriorRectangle, getInteriorRectangle, isBorderOpaque,
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface javax.swing.border.Border
getBorderInsets, isBorderOpaque, paintBorder
 

Constructor Detail

TopBorder

public TopBorder()
 

Method Detail

getBorderInsets(Component) Method

public Insets getBorderInsets(Component c)
Overrides
AbstractBorder.getBorderInsets(Component)

getBorderInsets(Component, Insets) Method

public Insets getBorderInsets(Component c, 
                              Insets insets)
Overrides
AbstractBorder.getBorderInsets(Component, Insets)

paintBorder(Component, Graphics, int, int, int, int) Method

public void paintBorder(Component c, 
                        Graphics g, 
                        int x, 
                        int y, 
                        int width, 
                        int height)
Paints a 1 pixel high border along the top of the component. Note that the color is defined in LookAndFeelConstants.MINI_FRAME_INACTIVE_BORDER

Overrides
AbstractBorder.paintBorder(Component, Graphics, int, int, int, int)