A class which implements a raised or lowered bevel with
softened corners.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is appropriate
for short term storage or RMI between applications running the same
version of Swing. A future release of Swing will provide support for
long term persistence.
SoftBevelBorder(int bevelType)
Creates a bevel border with the specified type and whose
colors will be derived from the background color of the
component passed into the paintBorder method.
SoftBevelBorder(int bevelType,
Color highlight,
Color shadow)
Creates a bevel border with the specified type, highlight and
shadow colors.
SoftBevelBorder(int bevelType,
Color highlightOuterColor,
Color highlightInnerColor,
Color shadowOuterColor,
Color shadowInnerColor)
Creates a bevel border with the specified type, highlight
shadow colors.
isBorderOpaque()
Returns whether or not the border is opaque.
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.
Methods inherited from class javax.swing.border.BevelBorder
Creates a bevel border with the specified type and whose
colors will be derived from the background color of the
component passed into the paintBorder method.
Parameters:
bevelType - the type of bevel for the border
SoftBevelBorder
public SoftBevelBorder(int bevelType,
Color highlight,
Color shadow)
Creates a bevel border with the specified type, highlight and
shadow colors.
Parameters:
bevelType - the type of bevel for the border
highlight - the color to use for the bevel highlight
shadow - the color to use for the bevel shadow
SoftBevelBorder
public SoftBevelBorder(int bevelType,
Color highlightOuterColor,
Color highlightInnerColor,
Color shadowOuterColor,
Color shadowInnerColor)
Creates a bevel border with the specified type, highlight
shadow colors.
Parameters:
bevelType - the type of bevel for the border
highlightOuterColor - the color to use for the bevel outer highlight
highlightInnerColor - the color to use for the bevel inner highlight
shadowOuterColor - the color to use for the bevel outer shadow
shadowInnerColor - the color to use for the bevel inner shadow
Method Detail
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.
Submit a bug or feature For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, California, 94303, U.S.A. All Rights Reserved.