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.InsetsgetBorderInsets(java.awt.Component c)booleanisBorderOpaque()voidpaintBorder(java.awt.Component c, java.awt.Graphics gg, int xx, int yy, int width, int height)voidsetInnerColor(java.awt.Color inner)Sets inner color.voidsetInnerColorTransparent()Sets inner color to a transparent version of the outer color.voidsetOuterColor(java.awt.Color outer)Sets outer color.voidsetOuterColorTransparent()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:
paintBorderin interfacejavax.swing.border.Border
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
- Specified by:
getBorderInsetsin interfacejavax.swing.border.Border
-
isBorderOpaque
public boolean isBorderOpaque()
- Specified by:
isBorderOpaquein interfacejavax.swing.border.Border
-
-