All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.border.EtchedBorder

java.lang.Object
   |
   +----com.sun.java.swing.border.AbstractBorder
           |
           +----com.sun.java.swing.border.EtchedBorder

public class EtchedBorder
extends AbstractBorder
A class which implements a simple etched border.


Constructor Index

 o EtchedBorder()
Creates an etched border whose colors will be derived from the background color of the component passed into the paintBorder method.
 o EtchedBorder(Color, Color)
Creates an etched border with the specified highlight and shadow colors.

Method Index

 o getBorderInsets(Component)
Returns the insets of the border.
 o isBorderOpaque()
Returns whether or not the border is opaque.
 o paintBorder(Component, Graphics, int, int, int, int)
Paints the border for the specified component with the specified position and size.

Constructors

 o EtchedBorder
 public EtchedBorder()
Creates an etched border whose colors will be derived from the background color of the component passed into the paintBorder method.

 o EtchedBorder
 public EtchedBorder(Color highlight,
                     Color shadow)
Creates an etched border with the specified highlight and shadow colors.

Parameters:
highlight - the color to use for the etched highlight
shadow - the color to use for the etched shadow

Methods

 o paintBorder
 public void paintBorder(Component c,
                         Graphics g,
                         int x,
                         int y,
                         int width,
                         int height)
Paints the border for the specified component with the specified position and size.

Parameters:
c - the component for which this border is being painted
g - the paint graphics
x - the x position of the painted border
y - the y position of the painted border
width - the width of the painted border
height - the height of the painted border
Overrides:
paintBorder in class AbstractBorder
 o getBorderInsets
 public Insets getBorderInsets(Component c)
Returns the insets of the border.

Parameters:
c - the component for which this border insets value applies
Overrides:
getBorderInsets in class AbstractBorder
 o isBorderOpaque
 public boolean isBorderOpaque()
Returns whether or not the border is opaque.

Overrides:
isBorderOpaque in class AbstractBorder

All Packages  Class Hierarchy  This Package  Previous  Next  Index