| Modifier and Type | Field and Description |
|---|---|
protected Color |
color |
protected int |
cornerRadius |
| Constructor and Description |
|---|
RoundedBorder() |
RoundedBorder(int cornerRadius,
Color color) |
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
createTranslucentImage(int width,
int height) |
static Color |
deriveColorAlpha(Color base,
int alpha) |
static Color |
deriveColorHSB(Color base,
float dH,
float dS,
float dB) |
Insets |
getBorderInsets(Component c) |
Insets |
getBorderInsets(Component c,
Insets insets) |
int |
getCornerRadius() |
boolean |
isBorderOpaque() |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
void |
setColor(Color color) |
void |
setCornerRadius(int cornerRadius) |
protected int cornerRadius
protected Color color
public RoundedBorder()
public RoundedBorder(int cornerRadius,
Color color)
public void setColor(Color color)
public void setCornerRadius(int cornerRadius)
public int getCornerRadius()
public Insets getBorderInsets(Component c)
getBorderInsets in interface Borderpublic boolean isBorderOpaque()
isBorderOpaque in interface Borderpublic void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder in interface Borderpublic static BufferedImage createTranslucentImage(int width, int height)
Copyright © 2015. All Rights Reserved.