| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv Component[][] | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addLayoutComponent(String s, Component c)
Implements java. If the layout manager uses a per-component string,
adds the component |
| private void | |
| private int | |
| private int | |
| public void | layoutContainer(Container c)
Implements java. Lays out the specified container. |
| public Dimension | minimumLayoutSize(Container c)
Implements java. Calculates the minimum size dimensions for the specified container, given the components it contains. |
| public Dimension | preferredLayoutSize(Container c)
Implements java. Calculates the preferred size dimensions for the specified container, given the components it contains. |
| public void | removeLayoutComponent(Component c)
Implements java. Removes the specified component from the layout. |
| columns | back to summary |
|---|---|
| pack-priv int columns | |
| componentCount | back to summary |
|---|---|
| pack-priv int componentCount | |
| layoutGrid | back to summary |
|---|---|
| pack-priv Component[][] layoutGrid | |
| rows | back to summary |
|---|---|
| pack-priv int rows | |
| xGap | back to summary |
|---|---|
| pack-priv int xGap | |
| yGap | back to summary |
|---|---|
| pack-priv int yGap | |
| SmartGridLayout | back to summary |
|---|---|
| public SmartGridLayout(int numColumns, int numRows) | |
| addLayoutComponent | back to summary |
|---|---|
| public void addLayoutComponent(String s, Component c) Implements java. Doc from java. If the layout manager uses a per-component string,
adds the component | |
| buildLayoutGrid | back to summary |
|---|---|
| private void buildLayoutGrid(Container c) | |
| computeColumnWidth | back to summary |
|---|---|
| private int computeColumnWidth(int columnNum) | |
| computeRowHeight | back to summary |
|---|---|
| private int computeRowHeight(int rowNum) | |
| layoutContainer | back to summary |
|---|---|
| public void layoutContainer(Container c) Implements java. Doc from java. Lays out the specified container. | |
| minimumLayoutSize | back to summary |
|---|---|
| public Dimension minimumLayoutSize(Container c) Implements java. Doc from java. Calculates the minimum size dimensions for the specified container, given the components it contains. | |
| preferredLayoutSize | back to summary |
|---|---|
| public Dimension preferredLayoutSize(Container c) Implements java. Doc from java. Calculates the preferred size dimensions for the specified container, given the components it contains. | |
| removeLayoutComponent | back to summary |
|---|---|
| public void removeLayoutComponent(Component c) Implements java. Doc from java. Removes the specified component from the layout. | |