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.
-
EtchedBorder()
- Creates an etched border whose colors will be derived
from the background color of the component passed into
the paintBorder method.
-
EtchedBorder(Color, Color)
- Creates an etched border with the specified highlight and
shadow colors.
-
getBorderInsets(Component)
- Returns the insets of the border.
-
isBorderOpaque()
- Returns whether or not the border is opaque.
-
paintBorder(Component, Graphics, int, int, int, int)
- Paints the border for the specified component with the
specified position and size.
EtchedBorder
public EtchedBorder()
- Creates an etched border whose colors will be derived
from the background color of the component passed into
the paintBorder method.
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
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
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
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