com.alee.utils.laf
Class WeblafBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by javax.swing.border.EmptyBorder
          extended by javax.swing.plaf.BorderUIResource.EmptyBorderUIResource
              extended by com.alee.utils.laf.WeblafBorder
All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border, javax.swing.plaf.UIResource

public final class WeblafBorder
extends javax.swing.plaf.BorderUIResource.EmptyBorderUIResource

Special border used by WebLaF to provide proper component content sides spacing. It usually replaces default/user component border but you can provide a special client property that will disable that behavior.

Author:
Mikle Garin
See Also:
WebLookAndFeel.PROPERTY_HONOR_USER_BORDER, WebLookAndFeel.PROPERTY_HONOR_USER_BORDERS, Serialized Form

Field Summary
 
Fields inherited from class javax.swing.border.EmptyBorder
bottom, left, right, top
 
Constructor Summary
WeblafBorder(java.awt.Insets borderInsets)
          Constructs new empty border with the specified insets.
WeblafBorder(int border)
          Constructs new empty border with the specified border width at each side.
WeblafBorder(int top, int left, int bottom, int right)
          Constructs new empty border with the specified border widths at each side.
 
Method Summary
 
Methods inherited from class javax.swing.border.EmptyBorder
getBorderInsets, getBorderInsets, getBorderInsets, isBorderOpaque, paintBorder
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeblafBorder

public WeblafBorder(int border)
Constructs new empty border with the specified border width at each side.

Parameters:
border - border width

WeblafBorder

public WeblafBorder(int top,
                    int left,
                    int bottom,
                    int right)
Constructs new empty border with the specified border widths at each side.

Parameters:
top - top border width
left - left border width
bottom - bottom border width
right - right border width

WeblafBorder

public WeblafBorder(java.awt.Insets borderInsets)
Constructs new empty border with the specified insets.

Parameters:
borderInsets - border insets