public class RoundedCornerBorder
extends javax.swing.border.AbstractBorder
Modifier and Type | Field and Description |
---|---|
static int |
SIDE_ALL |
static int |
SIDE_BOTTOM |
static int |
SIDE_LEFT |
static int |
SIDE_RIGHT |
static int |
SIDE_TOP |
Constructor and Description |
---|
RoundedCornerBorder() |
RoundedCornerBorder(int radius,
java.awt.Color color,
int side) |
RoundedCornerBorder(int radius,
java.awt.Color color,
int side,
int stroke) |
Modifier and Type | Method and Description |
---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c) |
java.awt.Insets |
getBorderInsets(java.awt.Component c,
java.awt.Insets insets) |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
public static final int SIDE_TOP
public static final int SIDE_LEFT
public static final int SIDE_BOTTOM
public static final int SIDE_RIGHT
public static final int SIDE_ALL
public RoundedCornerBorder()
public RoundedCornerBorder(int radius, java.awt.Color color, int side)
public RoundedCornerBorder(int radius, java.awt.Color color, int side, int stroke)
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
paintBorder
in interface javax.swing.border.Border
paintBorder
in class javax.swing.border.AbstractBorder
public java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets
in interface javax.swing.border.Border
getBorderInsets
in class javax.swing.border.AbstractBorder
public java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
getBorderInsets
in class javax.swing.border.AbstractBorder