com.alee.utils.laf
Class WeblafBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.EmptyBorder
javax.swing.plaf.BorderUIResource.EmptyBorderUIResource
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
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. |
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 |
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 widthleft
- left border widthbottom
- bottom border widthright
- right border width
WeblafBorder
public WeblafBorder(java.awt.Insets borderInsets)
- Constructs new empty border with the specified insets.
- Parameters:
borderInsets
- border insets