| 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.
|
| Modifier and Type | Class and Description |
|---|---|
private static class |
FormLayout.CachingMeasure
An abstract implementation of the
Measure interface
that caches component sizes. |
private static class |
FormLayout.MinimumHeightMeasure
Measures a component by computing its minimum height.
|
private static class |
FormLayout.MinimumWidthMeasure
Measures a component by computing its minimum width.
|
private static class |
FormLayout.PreferredHeightMeasure
Measures a component by computing its preferred height.
|
private static class |
FormLayout.PreferredWidthMeasure
Measures a component by computing its preferred width.
|
| Modifier and Type | Field and Description |
|---|---|
private FormLayout.Measure |
FormLayout.minimumHeightMeasure |
private FormLayout.Measure |
FormLayout.minimumWidthMeasure
These functional objects are used to measure component sizes.
|
private FormLayout.Measure |
FormLayout.preferredHeightMeasure |
private FormLayout.Measure |
FormLayout.preferredWidthMeasure |
| Modifier and Type | Method and Description |
|---|---|
private static int |
CellConstraints.componentSize(java.awt.Component component,
FormSpec formSpec,
int cellSize,
FormLayout.Measure minMeasure,
FormLayout.Measure prefMeasure)
Computes and returns the pixel size of the given component using the
given form specification, measures, and cell size.
|
private static int[] |
FormLayout.computeGridOrigins(java.awt.Container container,
int totalSize,
int offset,
java.util.List formSpecs,
java.util.List[] componentLists,
int[][] groupIndices,
FormLayout.Measure minMeasure,
FormLayout.Measure prefMeasure)
Computes and returns the grid's origins.
|
private java.awt.Dimension |
FormLayout.computeLayoutSize(java.awt.Container parent,
FormLayout.Measure defaultWidthMeasure,
FormLayout.Measure defaultHeightMeasure)
Computes and returns the layout size of the given
parent
container using the specified measures. |
int |
BoundedSize.maximumSize(java.awt.Container container,
java.util.List components,
FormLayout.Measure minMeasure,
FormLayout.Measure prefMeasure,
FormLayout.Measure defaultMeasure)
Returns this size as pixel size.
|
int |
ConstantSize.maximumSize(java.awt.Container container,
java.util.List components,
FormLayout.Measure minMeasure,
FormLayout.Measure prefMeasure,
FormLayout.Measure defaultMeasure)
Returns this size as pixel size.
|
(package private) int |
FormSpec.maximumSize(java.awt.Container container,
java.util.List components,
FormLayout.Measure minMeasure,
FormLayout.Measure prefMeasure,
FormLayout.Measure defaultMeasure)
Computes the maximum size for the given list of components, using
this form spec and the specified measure.
|
int |
PrototypeSize.maximumSize(java.awt.Container container,
java.util.List components,
FormLayout.Measure minMeasure,
FormLayout.Measure prefMeasure,
FormLayout.Measure defaultMeasure)
Computes and returns the width of this Size's prototype in pixel.
|
int |
Size.maximumSize(java.awt.Container container,
java.util.List components,
FormLayout.Measure minMeasure,
FormLayout.Measure prefMeasure,
FormLayout.Measure defaultMeasure)
Computes and returns this Size's maximum pixel size applied to
the given list of components using the specified measures.
|
int |
Sizes.ComponentSize.maximumSize(java.awt.Container container,
java.util.List components,
FormLayout.Measure minMeasure,
FormLayout.Measure prefMeasure,
FormLayout.Measure defaultMeasure)
Computes the maximum size for the given list of components, using
this form spec and the specified measure.
|
private static int[] |
FormLayout.maximumSizes(java.awt.Container container,
java.util.List formSpecs,
java.util.List[] componentLists,
FormLayout.Measure minMeasure,
FormLayout.Measure prefMeasure,
FormLayout.Measure defaultMeasure)
Computes and returns the sizes for the given form specs, component
lists and measures for minimum, preferred, and default size.
|
(package private) void |
CellConstraints.setBounds(java.awt.Component c,
FormLayout layout,
java.awt.Rectangle cellBounds,
FormLayout.Measure minWidthMeasure,
FormLayout.Measure minHeightMeasure,
FormLayout.Measure prefWidthMeasure,
FormLayout.Measure prefHeightMeasure)
Sets the component's bounds using the given component and cell bounds.
|