Package com.l2fprod.gui.border
Class LineBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.LineBorder
com.l2fprod.gui.border.LineBorder
- All Implemented Interfaces:
Serializable
,Border
LineBorder.
This class extends the standard line border but allows the user to customize the LineBorder roundedCorners variable which was not public in jdk1.2.2.
This class extends the standard line border but allows the user to customize the LineBorder roundedCorners variable which was not public in jdk1.2.2.
- Version:
- $Revision: 1.1 $, $Date: 2003/08/13 20:49:11 $
- Author:
- $Author: l2fprod $
- See Also:
-
Field Summary
Fields inherited from class javax.swing.border.LineBorder
lineColor, roundedCorners, thickness
-
Constructor Summary
ConstructorsConstructorDescriptionLineBorder
(Color color) Creates a line border with the specified color and a thickness = 1.LineBorder
(Color color, int thickness) Creates a line border with the specified color and thickness.LineBorder
(Color color, int thickness, boolean roundedCorners) Creates a line border with the specified color, thickness, and corner shape. -
Method Summary
Methods inherited from class javax.swing.border.LineBorder
createBlackLineBorder, createGrayLineBorder, getBorderInsets, getLineColor, getRoundedCorners, getThickness, isBorderOpaque, paintBorder
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
Constructor Details
-
LineBorder
Creates a line border with the specified color and a thickness = 1.- Parameters:
color
- the color for the border
-
LineBorder
Creates a line border with the specified color and thickness.- Parameters:
color
- the color of the borderthickness
- the thickness of the border
-
LineBorder
Creates a line border with the specified color, thickness, and corner shape.- Parameters:
color
- the color of the borderthickness
- the thickness of the borderroundedCorners
- whether or not border corners should be round
-