public class VerticalLayout extends java.lang.Object implements java.awt.LayoutManager
Constructor and Description |
---|
VerticalLayout()
DefaultConstructor.
|
VerticalLayout(boolean useParent)
Creates a new vertical layout.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Adds the specified component with the specified name to
the layout.
|
boolean |
isUseSizeFromParent()
Returns, whether the parent's defined size is used during the layouting,
or whether the childs are used to compute the size.
|
void |
layoutContainer(java.awt.Container parent)
Lays out the container in the specified panel.
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Calculates the minimum size dimensions for the specified
panel given the components in the specified parent container.
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Calculates the preferred size dimensions for the specified
panel given the components in the specified parent container.
|
void |
removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout.
|
public VerticalLayout()
public VerticalLayout(boolean useParent)
useParent
- defines, whether the parent's size is used.public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
name
- the component 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 preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
parent
- the component to be laid outminimumLayoutSize(java.awt.Container)
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
parent
- the component to be laid outpreferredLayoutSize(java.awt.Container)
public boolean isUseSizeFromParent()
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
parent
- the component which needs to be laid out