java.lang.Object | |
↳ | sun.awt.HorizBagLayout |
A horizontal 'bag' of Components. Allocates space for each Component from left to right.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new HorizBagLayout.
| |||||||||||
Constructs a HorizBagLayout with the specified gaps.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds the specified named component to the layout.
| |||||||||||
Lays out the specified container.
| |||||||||||
Returns the minimum dimensions needed to lay out the components
contained in the specified target container.
| |||||||||||
Returns the preferred dimensions for this layout given the components
in the specified target container.
| |||||||||||
Removes the specified component from the layout.
| |||||||||||
Returns the String representation of this HorizBagLayout's values.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a new HorizBagLayout.
Constructs a HorizBagLayout with the specified gaps.
hgap | the horizontal gap |
---|
Adds the specified named component to the layout.
name | the String name |
---|---|
comp | the component to be added |
Lays out the specified container. This method will actually reshape the components in the specified target container in order to satisfy the constraints of the HorizBagLayout object.
target | the component being laid out |
---|
Returns the minimum dimensions needed to lay out the components contained in the specified target container.
target | the Container on which to do the layout |
---|
Returns the preferred dimensions for this layout given the components in the specified target container.
target | the component which needs to be laid out |
---|
Removes the specified component from the layout.
comp | the component to be removed |
---|
Returns the String representation of this HorizBagLayout's values.