public class GlowBorder
extends java.lang.Object
implements javax.swing.border.Border
Modifier and Type | Field and Description |
---|---|
protected java.awt.Color |
inner
Inner color.
|
protected java.awt.Insets |
insets
Border insets.
|
protected java.awt.Color |
outer
Outer color.
|
Constructor and Description |
---|
GlowBorder(int top,
int left,
int bottom,
int right)
Create border.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c) |
boolean |
isBorderOpaque() |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics gg,
int xx,
int yy,
int width,
int height) |
void |
setInnerColor(java.awt.Color inner)
Sets inner color.
|
void |
setInnerColorTransparent()
Sets inner color to a transparent version of the outer color.
|
void |
setOuterColor(java.awt.Color outer)
Sets outer color.
|
void |
setOuterColorTransparent()
Sets outer color to a transparent version of the inner color.
|
protected java.awt.Insets insets
protected java.awt.Color inner
protected java.awt.Color outer
public GlowBorder(int top, int left, int bottom, int right)
public void setInnerColor(java.awt.Color inner)
inner
- Inner color.public void setOuterColor(java.awt.Color outer)
outer
- Outer color.public void setOuterColorTransparent()
public void setInnerColorTransparent()
public void paintBorder(java.awt.Component c, java.awt.Graphics gg, int xx, int yy, int width, int height)
paintBorder
in interface javax.swing.border.Border
public java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets
in interface javax.swing.border.Border
public boolean isBorderOpaque()
isBorderOpaque
in interface javax.swing.border.Border