Package jadex.commons.gui
Class GlowBorder
- java.lang.Object
-
- jadex.commons.gui.GlowBorder
-
- All Implemented Interfaces:
javax.swing.border.Border
public class GlowBorder extends java.lang.Object implements javax.swing.border.Border
-
-
Constructor Summary
Constructors Constructor Description GlowBorder(int top, int left, int bottom, int right)
Create border.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setInnerColor
public void setInnerColor(java.awt.Color inner)
Sets inner color.- Parameters:
inner
- Inner color.
-
setOuterColor
public void setOuterColor(java.awt.Color outer)
Sets outer color.- Parameters:
outer
- Outer color.
-
setOuterColorTransparent
public void setOuterColorTransparent()
Sets outer color to a transparent version of the inner color.
-
setInnerColorTransparent
public void setInnerColorTransparent()
Sets inner color to a transparent version of the outer color.
-
paintBorder
public void paintBorder(java.awt.Component c, java.awt.Graphics gg, int xx, int yy, int width, int height)
- Specified by:
paintBorder
in interfacejavax.swing.border.Border
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
- Specified by:
getBorderInsets
in interfacejavax.swing.border.Border
-
isBorderOpaque
public boolean isBorderOpaque()
- Specified by:
isBorderOpaque
in interfacejavax.swing.border.Border
-
-