public final class Paddings extends Object
ConstantSize to define the margins.
 Paddings are frequently used to add white space around
 forms, panels, and more generally visual designs.
 Examples:
 
 Paddings.DLU2
 Paddings.createPadding(Sizes.DLUY4, Sizes.DLUX2, Sizes.DLUY4, Sizes.DLUX2);
 Paddings.createPadding("4dlu, 2dlu, 4dlu, 2dlu");
 | Modifier and Type | Class and Description | 
|---|---|
| static class  | Paddings.PaddingAn  EmptyBorderthat uses 4 instances ofConstantSizeto define the top, left, bottom and right gap. | 
| Modifier and Type | Field and Description | 
|---|---|
| static Paddings.Padding | BUTTON_BAR_PADA standardized reusable padding intended for the gap
 between a component and a button bar in its bottom. | 
| static Paddings.Padding | DIALOGA standardized reusable padding for dialogs without tabs. | 
| static Paddings.Padding | DLU14A prepared and reusable padding with 14dlu on all sides. | 
| static Paddings.Padding | DLU2A prepared and reusable padding with 2dlu on all sides. | 
| static Paddings.Padding | DLU21A prepared padding with 21dlu on all sides. | 
| static Paddings.Padding | DLU4A prepared and reusable padding with 4dlu on all sides. | 
| static Paddings.Padding | DLU7A prepared and reusable padding with 7dlu on all sides. | 
| static Paddings.Padding | DLU9A prepared and reusable padding with 9dlu on all sides. | 
| static EmptyBorder | EMPTYA prepared and reusable EmptyBorder without gaps. | 
| static Paddings.Padding | TABBED_DIALOGA standardized reusable padding for dialogs that have tabs. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Paddings.Padding | createPadding(ConstantSize top,
             ConstantSize left,
             ConstantSize bottom,
             ConstantSize right)Creates and returns a padding (an instance of  EmptyBorder)
 with the specified margins. | 
| static Paddings.Padding | createPadding(String encodedSizes,
             Object... args)Creates and returns a padding (an instance of  EmptyBorder)
 using sizes as specified by the given string. | 
public static final EmptyBorder EMPTY
public static final Paddings.Padding DLU2
public static final Paddings.Padding DLU4
public static final Paddings.Padding DLU7
public static final Paddings.Padding DLU9
public static final Paddings.Padding DLU14
public static final Paddings.Padding DLU21
public static final Paddings.Padding BUTTON_BAR_PAD
public static final Paddings.Padding DIALOG
TABBED_DIALOGpublic static final Paddings.Padding TABBED_DIALOG
DIALOGpublic static Paddings.Padding createPadding(ConstantSize top, ConstantSize left, ConstantSize bottom, ConstantSize right)
EmptyBorder)
 with the specified margins.top - the top marginleft - the left side marginbottom - the bottom marginright - the right-hand side marginNullPointerException - if top, left, bottom, or right is nullcreatePadding(String, Object...)public static Paddings.Padding createPadding(String encodedSizes, Object... args)
EmptyBorder)
 using sizes as specified by the given string.
 This string is a comma-separated encoding of 4 ConstantSizes.encodedSizes - top, left, bottom, right gap encoded as Stringargs - optional format arguments,
                       used if encodedSizes is a format stringcreatePadding(ConstantSize, ConstantSize, ConstantSize, ConstantSize)Copyright © 2002-2015 JGoodies Software GmbH. All Rights Reserved.