Constructor and Description |
---|
LineBorder(Color color_) |
Modifier and Type | Method and Description |
---|---|
static Border |
createBlackLineBorder() |
Insets |
getBorderInsets(Component component_)
Returns the insets of the border.
|
Color |
getLineColor() |
void |
paintBorder(Component component_,
int graphics_,
int x_,
int y_,
int width_,
int height_)
Paints the border for the specified component with the specified
position and size.
|
public LineBorder(Color color_)
public Insets getBorderInsets(Component component_)
getBorderInsets
in interface Border
public static Border createBlackLineBorder()
public Color getLineColor()
public void paintBorder(Component component_, int graphics_, int x_, int y_, int width_, int height_)
paintBorder
in interface Border
component_
- the component around which this border is being
drawn. The background color of the border is obtained from the
component. If the line color of this border is also set to null,
the foreground color of the border is also obtained from component_.graphics_
- This parameter is just a placeholder where the
Swing "Graphics" parameter would be.x_
- The x coordinate of the top left corner.y_
- The y coordinate of the top left corner.width_
- the width of the border box.height_
- the height of the border box.