org.jfree.ui.tabbedui
Class VerticalLayout
java.lang.Object
org.jfree.ui.tabbedui.VerticalLayout
- LayoutManager
extends java.lang.Object
implements LayoutManager
A simple layout manager, which aligns all components in a vertical
flow layout.
void | addLayoutComponent(String name, 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(Container parent) - Lays out the container in the specified panel.
|
Dimension | minimumLayoutSize(Container parent) - Calculates the minimum size dimensions for the specified
panel given the components in the specified parent container.
|
Dimension | preferredLayoutSize(Container parent) - Calculates the preferred size dimensions for the specified
panel given the components in the specified parent container.
|
void | removeLayoutComponent(Component comp) - Removes the specified component from the layout.
|
VerticalLayout
public VerticalLayout(boolean useParent)
Creates a new vertical layout. If useParent is set to true,
the parents size will be used when performing the layouting,
else only the parents childs are used to compute the layout.
useParent
- defines, whether the parent's size is used.
addLayoutComponent
public void addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to
the layout.
name
- the component namecomp
- the component to be added
isUseSizeFromParent
public boolean isUseSizeFromParent()
Returns, whether the parent's defined size is used during the layouting,
or whether the childs are used to compute the size.
- true, if the parent's size is used, false otherwise.
layoutContainer
public void layoutContainer(Container parent)
Lays out the container in the specified panel.
parent
- the component which needs to be laid out
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
Calculates the minimum size dimensions for the specified
panel given the components in the specified parent container.
parent
- the component to be laid out
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
Calculates the preferred size dimensions for the specified
panel given the components in the specified parent container.
parent
- the component to be laid out
- the preferred layout size
removeLayoutComponent
public void removeLayoutComponent(Component comp)
Removes the specified component from the layout.
comp
- the component to be removed