class RoundedBorder
extends javax.swing.border.AbstractBorder
This class represents a rounded border around a component. It’s used to draw a border around a string filter layer for a table.
Modifier and Type | Field and Description |
---|---|
private int |
arcHeight |
private int |
arcWidth |
private int |
borderWidth |
private java.awt.Color |
color |
private static long |
serialVersionUID |
Constructor and Description |
---|
RoundedBorder(int arcWidth,
int arcHeight,
int borderWidth,
java.awt.Color color)
Creates a rounded border.
|
Modifier and Type | Method and Description |
---|---|
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
private static final long serialVersionUID
private int arcWidth
private int arcHeight
private int borderWidth
private java.awt.Color color
public RoundedBorder(int arcWidth, int arcHeight, int borderWidth, java.awt.Color color)
Creates a rounded border.
arcWidth
- the horizontal diameter of the arc at the four cornersarcHeight
- the vertical diameter of the arc at the four cornersborderWidth
- the border stroke widthcolor
- the border color