org.jvnet.substance
Class SubstanceBorder

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

public class SubstanceBorder
extends Object
implements Border

Gradient border for the Substance look and feel.

Author:
Kirill Grouchnikov

Field Summary
static Insets INSETS
          Default insets.
 
Constructor Summary
SubstanceBorder()
           
 
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

INSETS

public static Insets INSETS
Default insets.

Constructor Detail

SubstanceBorder

public SubstanceBorder()
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