Class Borders
java.lang.Object
com.jgoodies.forms.factories.Borders
Deprecated.
Provides constants and factory methods for paddings (empty borders)
that use instances of
ConstantSize to define the margins.
Examples:
Borders.DLU2
Borders.createEmptyBorder(Sizes.DLUY4, Sizes.DLUX2, Sizes.DLUY4, Sizes.DLUX2);
Borders.createEmptyBorder("4dlu, 2dlu, 4dlu, 2dlu");
- Version:
- $Revision: 1.14 $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Paddings.PaddingDeprecated.A standardized Border that describes the gap between a component and a button bar in its bottom.static final Paddings.PaddingDeprecated.A standardized Border that describes the border around a dialog content that has no tabs.static final Paddings.PaddingDeprecated.A prepared Border with 14dlu on all sides.static final Paddings.PaddingDeprecated.A prepared and reusable Border with 2dlu on all sides.static final Paddings.PaddingDeprecated.A prepared Border with 21dlu on all sides.static final Paddings.PaddingDeprecated.A prepared and reusable Border with 4dlu on all sides.static final Paddings.PaddingDeprecated.A prepared and reusable Border with 7dlu on all sides.static final Paddings.PaddingDeprecated.A prepared and reusable Border with 9dlu on all sides.static final EmptyBorderDeprecated.A prepared and reusable EmptyBorder without gaps.static final Paddings.PaddingDeprecated.A standardized Border that describes the border around a dialog content that uses tabs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Paddings.PaddingcreateEmptyBorder(ConstantSize top, ConstantSize left, ConstantSize bottom, ConstantSize right) Deprecated.static Paddings.PaddingcreateEmptyBorder(String encodedSizes) Deprecated.Replaced byPaddings.createPadding(String, Object...).
-
Field Details
-
EMPTY
-
DLU2
Deprecated.A prepared and reusable Border with 2dlu on all sides. -
DLU4
Deprecated.A prepared and reusable Border with 4dlu on all sides. -
DLU7
Deprecated.A prepared and reusable Border with 7dlu on all sides. -
DLU9
Deprecated.A prepared and reusable Border with 9dlu on all sides.- Since:
- 1.6
-
DLU14
-
DLU21
Deprecated.A prepared Border with 21dlu on all sides.- Since:
- 1.2
-
BUTTON_BAR_PAD
Deprecated.A standardized Border that describes the gap between a component and a button bar in its bottom. -
DIALOG
Deprecated.A standardized Border that describes the border around a dialog content that has no tabs.- See Also:
-
TABBED_DIALOG
Deprecated.A standardized Border that describes the border around a dialog content that uses tabs.- See Also:
-
-
Constructor Details
-
Borders
private Borders()Deprecated.
-
-
Method Details
-
createEmptyBorder
@Deprecated public static Paddings.Padding createEmptyBorder(ConstantSize top, ConstantSize left, ConstantSize bottom, ConstantSize right) Deprecated.Creates and returns anEmptyBorderwith the specified gaps.- Parameters:
top- the top gapleft- the left-hand side gapbottom- the bottom gapright- the right-hand side gap- Returns:
- an
EmptyBorderwith the specified gaps - Throws:
NullPointerException- if top, left, bottom, or right isnull- See Also:
-
createEmptyBorder
Deprecated.Replaced byPaddings.createPadding(String, Object...).Creates and returns aBorderusing sizes as specified by the given string. This string is a comma-separated encoding of 4ConstantSizes.- Parameters:
encodedSizes- top, left, bottom, right gap encoded as String- Returns:
- an
EmptyBorderwith the specified gaps - See Also:
-
Paddings.