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:
java.io.Serializable,javax.swing.border.Border
public class LineBorder extends javax.swing.border.LineBorderLineBorder.
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LineBorder(java.awt.Color color)Creates a line border with the specified color and a thickness = 1.LineBorder(java.awt.Color color, int thickness)Creates a line border with the specified color and thickness.LineBorder(java.awt.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
-
-
-
-
Constructor Detail
-
LineBorder
public LineBorder(java.awt.Color color)
Creates a line border with the specified color and a thickness = 1.- Parameters:
color- the color for the border
-
LineBorder
public LineBorder(java.awt.Color color, int thickness)Creates a line border with the specified color and thickness.- Parameters:
color- the color of the borderthickness- the thickness of the border
-
LineBorder
public LineBorder(java.awt.Color color, int thickness, boolean roundedCorners)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
-
-