public class CustomizableLineBorder extends Object implements Border
Constructor and Description |
---|
CustomizableLineBorder()
Constructs a new border.
|
CustomizableLineBorder(boolean top,
boolean left,
boolean bottom,
boolean right)
Constructs a new border.
|
CustomizableLineBorder(boolean top,
boolean left,
boolean bottom,
boolean right,
Color color)
Constructs a new border.
|
CustomizableLineBorder(boolean top,
boolean left,
boolean bottom,
boolean right,
Color color,
Stroke stroke)
Constructs a new border.
|
Modifier and Type | Method and Description |
---|---|
Insets |
getBorderInsets(Component c) |
boolean |
isBorderOpaque() |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
public CustomizableLineBorder(boolean top, boolean left, boolean bottom, boolean right, Color color, Stroke stroke)
top
- if TRUE a line will be drawn at the top of the componentleft
- if TRUE a line will be drawn to the left of the componentbottom
- if TRUE a line will be drawn at the bottom of the componentright
- if TRUE a line will be drawn to the right of the componentcolor
- the color to use for the border linestroke
- the stroke used for drawing the linespublic CustomizableLineBorder(boolean top, boolean left, boolean bottom, boolean right, Color color)
top
- if TRUE a line will be drawn at the top of the componentleft
- if TRUE a line will be drawn to the left of the componentbottom
- if TRUE a line will be drawn at the bottom of the componentright
- if TRUE a line will be drawn to the right of the componentcolor
- the color to use for the border linepublic CustomizableLineBorder(boolean top, boolean left, boolean bottom, boolean right)
top
- if TRUE a line will be drawn at the top of the componentleft
- if TRUE a line will be drawn to the left of the componentbottom
- if TRUE a line will be drawn at the bottom of the componentright
- if TRUE a line will be drawn to the right of the componentpublic CustomizableLineBorder()
public Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
public boolean isBorderOpaque()
isBorderOpaque
in interface Border
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder
in interface Border
Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.