| Constructor and Description |
|---|
ConfigurableLineBorder(boolean top,
boolean left,
boolean bottom,
boolean right,
int thickness) |
| Modifier and Type | Method and Description |
|---|---|
Insets |
getBorderInsets(Component component) |
boolean |
isBorderOpaque() |
void |
paintBorder(Component component,
Graphics graphics,
int x,
int y,
int width,
int height)
Renders borders for the specified component based on the configuration
of this border object.
|
public ConfigurableLineBorder(boolean top,
boolean left,
boolean bottom,
boolean right,
int thickness)
top - Whether or not to draw the border on the top edge.left - Whether or not to draw the border on the left edge.bottom - Whether or not to draw the border on the bottom edge.right - Whether or not to draw the border on the right edge.thickness - The width (in pixels) of each side of the border.public void paintBorder(Component component, Graphics graphics, int x, int y, int width, int height)
paintBorder in interface Bordercomponent - The component for which the border is painted.graphics - A Graphics object to use for painting.x - The X-coordinate of the top left point of the border rectangle.y - The Y-coordinate of the top left point of the border rectangle.width - The width of the border rectangle.height - The height of the border rectangle.public Insets getBorderInsets(Component component)
getBorderInsets in interface Bordercomponent - The component for which the border is painted.public boolean isBorderOpaque()
isBorderOpaque in interface Border