org.jvnet.substance
Class SubstanceDropShadowBorder

java.lang.Object
  extended by org.jvnet.substance.SubstanceDropShadowBorder
All Implemented Interfaces:
Border

public class SubstanceDropShadowBorder
extends Object
implements Border

Gradient border with drop shadow for the Substance look and feel.

Author:
Kirill Grouchnikov

Field Summary
static int QUAQUA_MARGIN
           
 
Constructor Summary
SubstanceDropShadowBorder()
          Simple constructor.
SubstanceDropShadowBorder(int gap)
          Simple constructor.
 
Method Summary
 Insets getBorderInsets(Component c)
           
 boolean isBorderOpaque()
           
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUAQUA_MARGIN

public static final int QUAQUA_MARGIN
See Also:
Constant Field Values
Constructor Detail

SubstanceDropShadowBorder

public SubstanceDropShadowBorder()
Simple constructor. Constructs border with default insets.


SubstanceDropShadowBorder

public SubstanceDropShadowBorder(int gap)
Simple constructor. The insets will be computed based on the specified value for gap.

Parameters:
gap - Gap value.
Method Detail

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface Border

getBorderInsets

public Insets getBorderInsets(Component c)
Specified by:
getBorderInsets in interface Border

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface Border