| Package | Description |
|---|---|
| com.jgoodies.forms.layout |
Contains the core classes of the JGoodies Forms framework:
layout manager, column and row specifications, sizes and cell constraints.
|
| com.jgoodies.forms.util |
Consists of Forms framework helper classes for unit conversion and layout styles.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BoundedSize
Describes sizes that provide lower and upper bounds
as used by the JGoodies FormLayout.
|
class |
ConstantSize
An implementation of the
Size interface that represents constant
sizes described by a value and unit, for example:
10 pixel, 15 point or 4 dialog units. |
class |
PrototypeSize
A
Size implementation that computes its width and height
by a prototype String. |
(package private) static class |
Sizes.ComponentSize
An ordinal-based serializable typesafe enumeration that implements
the
Size interface for the component sizes:
min, pref, default. |
| Modifier and Type | Field and Description |
|---|---|
private Size |
BoundedSize.basis
Holds the base size.
|
private Size |
BoundedSize.lowerBound
Holds an optional lower bound.
|
private Size |
FormSpec.size
Holds the size that describes how to size this column or row.
|
private Size |
BoundedSize.upperBound
Holds an optional upper bound.
|
| Modifier and Type | Method and Description |
|---|---|
static Size |
Sizes.bounded(Size basis,
Size lowerBound,
Size upperBound)
Creates and returns a BoundedSize for the given basis
using the specified lower and upper bounds.
|
Size |
BoundedSize.getBasis()
Returns the base size, which is not-
null. |
Size |
BoundedSize.getLowerBound()
Returns the optional lower bound.
|
Size |
FormSpec.getSize()
Returns the size.
|
Size |
BoundedSize.getUpperBound()
Returns the optional upper bound.
|
private Size |
FormSpec.parseAtomicSize(java.lang.String token)
Decodes and returns an atomic size that is either a constant size or a
component size.
|
private Size |
FormSpec.parseBoundedSize(java.lang.String token) |
private Size |
FormSpec.parseOldBoundedSize(java.lang.String token,
boolean setMax)
Parses an encoded compound size and sets the size fields.
|
private Size |
FormSpec.parseSize(java.lang.String token)
Parses an encoded size spec and returns the size.
|
| Modifier and Type | Method and Description |
|---|---|
static Size |
Sizes.bounded(Size basis,
Size lowerBound,
Size upperBound)
Creates and returns a BoundedSize for the given basis
using the specified lower and upper bounds.
|
java.lang.String |
LayoutMap.columnPut(java.lang.String key,
Size value) |
private static boolean |
FormSpec.isConstant(Size aSize) |
java.lang.String |
LayoutMap.rowPut(java.lang.String key,
Size value) |
(package private) void |
FormSpec.setSize(Size size) |
| Constructor and Description |
|---|
BoundedSize(Size basis,
Size lowerBound,
Size upperBound)
Constructs a BoundedSize for the given basis using the
specified lower and upper bounds.
|
ColumnSpec(FormSpec.DefaultAlignment defaultAlignment,
Size size,
double resizeWeight)
Constructs a ColumnSpec for the given default alignment,
size and resize weight.
|
ColumnSpec(Size size)
Constructs a ColumnSpec for the given size using the
default alignment, and no resizing.
|
FormSpec(FormSpec.DefaultAlignment defaultAlignment,
Size size,
double resizeWeight)
Constructs a
FormSpec for the given default alignment,
size, and resize weight. |
RowSpec(FormSpec.DefaultAlignment defaultAlignment,
Size size,
double resizeWeight)
Constructs a RowSpec from the given default orientation,
size, and resize weight.
|
RowSpec(Size size)
Constructs a RowSpec for the given size using the
default alignment, and no resizing.
|
| Modifier and Type | Field and Description |
|---|---|
private static Size |
MacLayoutStyle.BUTTON_HEIGHT |
private static Size |
WindowsLayoutStyle.BUTTON_HEIGHT |
private static Size |
MacLayoutStyle.BUTTON_WIDTH |
private static Size |
WindowsLayoutStyle.BUTTON_WIDTH |
| Modifier and Type | Method and Description |
|---|---|
abstract Size |
LayoutStyle.getDefaultButtonHeight()
Returns this style's default button height.
|
Size |
MacLayoutStyle.getDefaultButtonHeight() |
Size |
WindowsLayoutStyle.getDefaultButtonHeight() |
abstract Size |
LayoutStyle.getDefaultButtonWidth()
Returns this style's default button width.
|
Size |
MacLayoutStyle.getDefaultButtonWidth() |
Size |
WindowsLayoutStyle.getDefaultButtonWidth() |