All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.border.JLineBorder
java.lang.Object
|
+----com.sun.java.swing.border.JBorder
|
+----com.sun.java.swing.border.JLineBorder
- public class JLineBorder
- extends JBorder
Object capable of rendering a line border of arbitrary thickness
of a single color.
-
lineColor
-
-
roundedRect
-
-
thickness
-
-
JLineBorder(Color)
- Convience method.
-
JLineBorder(Color, int)
-
-
createBlackLineInstance()
- Convenience method for getting the Color.black LineBorder of thickness 1.
-
createGrayLineInstance()
- Convenience method for getting the Color.gray LineBorder of thickness 1.
-
getBorderInsets()
-
-
getLineColor()
-
-
getThickness()
-
-
paintBorder(Graphics, int, int, int, int)
-
thickness
protected int thickness
lineColor
protected Color lineColor
roundedRect
protected boolean roundedRect
JLineBorder
public JLineBorder(Color color)
- Convience method. Equivilent to:
JLineBorder(color, 1);
JLineBorder
public JLineBorder(Color color,
int thickness)
createBlackLineInstance
public static Border createBlackLineInstance()
- Convenience method for getting the Color.black LineBorder of thickness 1.
createGrayLineInstance
public static Border createGrayLineInstance()
- Convenience method for getting the Color.gray LineBorder of thickness 1.
paintBorder
public void paintBorder(Graphics g,
int x,
int y,
int width,
int height)
- Overrides:
- paintBorder in class JBorder
getBorderInsets
public Insets getBorderInsets()
- Overrides:
- getBorderInsets in class JBorder
getLineColor
public Color getLineColor()
getThickness
public int getThickness()
All Packages Class Hierarchy This Package Previous Next Index