com.jgoodies.forms.factories
Class Borders
public final class Borders
Provides constants and factory methods for
Border
s that use
instances of
ConstantSize
to define the margins.
Examples:
Borders.DLU2_BORDER
Borders.createEmptyBorder(Sizes.DLUY4, Sizes.DLUX2, Sizes.DLUY4, Sizes.DLUX2);
Borders.createEmptyBorder("4dlu, 2dlu, 4dlu, 2dlu");
static Border | BUTTON_BAR_GAP_BORDER - A standardized Border that describes the gap between a component
and a button bar in its bottom.
|
static Border | DIALOG_BORDER - A standardized Border that describes the border around
a dialog content that has no tabs.
|
static Border | DLU14_BORDER - A prepared Border with 14dlu on all sides.
|
static Border | DLU2_BORDER - A prepared and reusable Border with 2dlu on all sides.
|
static Border | DLU4_BORDER - A prepared and reusable Border with 4dlu on all sides.
|
static Border | DLU7_BORDER - A prepared and reusable Border with 7dlu on all sides.
|
static Border | EMPTY_BORDER - A prepared and reusable EmptyBorder without gaps.
|
static Border | TABBED_DIALOG_BORDER - A standardized Border that describes the border around
a dialog content that uses tabs.
|
BUTTON_BAR_GAP_BORDER
public static final Border BUTTON_BAR_GAP_BORDER
A standardized Border that describes the gap between a component
and a button bar in its bottom.
DIALOG_BORDER
public static final Border DIALOG_BORDER
A standardized Border that describes the border around
a dialog content that has no tabs.
DLU14_BORDER
public static final Border DLU14_BORDER
A prepared Border with 14dlu on all sides.
DLU2_BORDER
public static final Border DLU2_BORDER
A prepared and reusable Border with 2dlu on all sides.
DLU4_BORDER
public static final Border DLU4_BORDER
A prepared and reusable Border with 4dlu on all sides.
DLU7_BORDER
public static final Border DLU7_BORDER
A prepared and reusable Border with 7dlu on all sides.
EMPTY_BORDER
public static final Border EMPTY_BORDER
A prepared and reusable EmptyBorder without gaps.
TABBED_DIALOG_BORDER
public static final Border TABBED_DIALOG_BORDER
A standardized Border that describes the border around
a dialog content that uses tabs.
createEmptyBorder
public static Border createEmptyBorder(String encodedSizes)
Creates and returns a Border
using sizes as specified by
the given string. This string is a comma-separated encoding of
4 ConstantSize
s.
encodedSizes
- top, left, bottom, right gap encoded as String
- an
EmptyBorder
with the specified gaps
createEmptyBorder
public static Border createEmptyBorder(ConstantSize top,
ConstantSize left,
ConstantSize bottom,
ConstantSize right)
Creates and returns an EmptyBorder
with the specified
gaps.
top
- the top gapleft
- the left-hand side gapbottom
- the bottom gapright
- the right-hand side gap
- an
EmptyBorder
with the specified gaps
Copyright © 2002-2004 JGoodies Karsten Lentzsch. All Rights Reserved.