public class VerticalBagLayout
extends java.lang.Object
implements java.awt.LayoutManager
Constructor and Description |
---|
VerticalBagLayout()
Constructs a new VerticalBagLayout.
|
VerticalBagLayout(int vgap)
Constructs a VerticalBagLayout with the specified gaps.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Adds the specified named component to the layout.
|
void |
layoutContainer(java.awt.Container target)
Lays out the specified container.
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target)
Returns the minimum dimensions needed to lay out the components
contained in the specified target container.
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container target)
Returns the preferred dimensions for this layout given the components
in the specified target container.
|
void |
removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout.
|
java.lang.String |
toString()
Returns the String representation of this VerticalBagLayout's values.
|
public VerticalBagLayout()
public VerticalBagLayout(int vgap)
vgap
- the vertical gappublic void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
name
- the String namecomp
- the component to be addedpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
comp
- the component to be removedpublic java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize
in interface java.awt.LayoutManager
target
- the Container on which to do the layoutContainer
,
preferredLayoutSize(java.awt.Container)
public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize
in interface java.awt.LayoutManager
target
- the component which needs to be laid outContainer
,
minimumLayoutSize(java.awt.Container)
public void layoutContainer(java.awt.Container target)
layoutContainer
in interface java.awt.LayoutManager
target
- the component being laid outContainer
public java.lang.String toString()
toString
in class java.lang.Object