All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.border.LineBorder
java.lang.Object
|
+----com.sun.java.swing.border.DefaultBorder
|
+----com.sun.java.swing.border.LineBorder
- public class LineBorder
- extends DefaultBorder
Object capable of rendering a line border of arbitrary thickness
of a single color.
-
lineColor
-
-
roundedRect
-
-
thickness
-
-
LineBorder(Color)
- Convience method.
-
LineBorder(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()
- This default implementation returns new Insets(0, 0, 0, 0).
-
getLineColor()
-
-
getThickness()
-
-
isBorderOpaque()
- This default implementation returns false.
-
paintBorder(Graphics, int, int, int, int)
- This default implementation does no painting.
thickness
protected int thickness
lineColor
protected Color lineColor
roundedRect
protected boolean roundedRect
LineBorder
public LineBorder(Color color)
- Convience method. Equivilent to:
JLineBorder(color, 1);
LineBorder
public LineBorder(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)
- This default implementation does no painting.
- Overrides:
- paintBorder in class DefaultBorder
getBorderInsets
public Insets getBorderInsets()
- This default implementation returns new Insets(0, 0, 0, 0).
- Overrides:
- getBorderInsets in class DefaultBorder
getLineColor
public Color getLineColor()
getThickness
public int getThickness()
isBorderOpaque
public boolean isBorderOpaque()
- This default implementation returns false.
- Overrides:
- isBorderOpaque in class DefaultBorder
All Packages Class Hierarchy This Package Previous Next Index