API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.border. LineBorder View Source
Author(s)
David Kloba
Since
Version
1.25 04/07/06
Serial
Hierarchy
 Object
      AbstractBorder
          LineBorder
Implements
Subclasses
Description
public class LineBorder
  A class which implements a line border of arbitrary thickness and of a single color.
See also:   
Constructors
public LineBorder (Color color)
  Creates a line border with the specified color and a thickness = 1.
public LineBorder (Color color, int thickness)
  Creates a line border with the specified color and thickness.
public LineBorder (Color color, int thickness, boolean roundedCorners)
  Creates a line border with the specified color, thickness, and corner shape.
Methods
Hide/Show inherited methods
publicstatic Border createBlackLineBorder ()
Convenience method for getting the Color.black LineBorder of thickness 1.
publicstatic Border createGrayLineBorder ()
Convenience method for getting the Color.gray LineBorder of thickness 1.
public int getBaseline (Component c, int width, int height) [Inherited From AbstractBorder]
  Returns the baseline.
public BaselineResizeBehavior getBaselineResizeBehavior (Component c) [Inherited From AbstractBorder]
  Returns an enum indicating how the baseline of a component changes as the size changes.
public Insets getBorderInsets (Component c) [Overrides AbstractBorder]
  Returns the insets of the border.
public Insets getBorderInsets (Component c, Insets insets) [Overrides AbstractBorder]
  Reinitialize the insets parameter with this Border's current Insets.
publicstatic Rectangle getInteriorRectangle (Component c, Border b, int x, int y, int width, int height) [Inherited From AbstractBorder]
  Returns a rectangle using the arguments minus the insets of the border.
public Rectangle getInteriorRectangle (Component c, int x, int y, int width, int height) [Inherited From AbstractBorder]
  This convenience method calls the static method.
public Color getLineColor ()
Returns the color of the border.
public boolean getRoundedCorners ()
  Returns whether this border will be drawn with rounded corners.
public int getThickness ()
Returns the thickness of the border.
public boolean isBorderOpaque () [Overrides AbstractBorder]
Returns whether or not the border is opaque.
pack-privatestatic boolean isLeftToRight (Component c) [Inherited From AbstractBorder]
public void paintBorder (Component c, Graphics g, int x, int y, int width, int height) [Overrides AbstractBorder]
  Paints the border for the specified component with the specified position and size.
Fields
Hide/Show inherited fields
protected Color lineColor
protected boolean roundedCorners
protected int thickness
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar