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.


Variable Index

 o lineColor
 o roundedRect
 o thickness

Constructor Index

 o JLineBorder(Color)
Convience method.
 o JLineBorder(Color, int)

Method Index

 o createBlackLineInstance()
Convenience method for getting the Color.black LineBorder of thickness 1.
 o createGrayLineInstance()
Convenience method for getting the Color.gray LineBorder of thickness 1.
 o getBorderInsets()
 o getLineColor()
 o getThickness()
 o paintBorder(Graphics, int, int, int, int)

Variables

 o thickness
 protected int thickness
 o lineColor
 protected Color lineColor
 o roundedRect
 protected boolean roundedRect

Constructors

 o JLineBorder
 public JLineBorder(Color color)
Convience method. Equivilent to:
   JLineBorder(color, 1);
 

 o JLineBorder
 public JLineBorder(Color color,
                    int thickness)

Methods

 o createBlackLineInstance
 public static Border createBlackLineInstance()
Convenience method for getting the Color.black LineBorder of thickness 1.

 o createGrayLineInstance
 public static Border createGrayLineInstance()
Convenience method for getting the Color.gray LineBorder of thickness 1.

 o paintBorder
 public void paintBorder(Graphics g,
                         int x,
                         int y,
                         int width,
                         int height)
Overrides:
paintBorder in class JBorder
 o getBorderInsets
 public Insets getBorderInsets()
Overrides:
getBorderInsets in class JBorder
 o getLineColor
 public Color getLineColor()
 o getThickness
 public int getThickness()

All Packages  Class Hierarchy  This Package  Previous  Next  Index