Package org.jfree.ui.tabbedui
Class VerticalLayout
java.lang.Object
org.jfree.ui.tabbedui.VerticalLayout
- All Implemented Interfaces:
LayoutManager
A simple layout manager, which aligns all components in a vertical
flow layout.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanDefines, whether to use the parents size or whether to compute the size from the parent's childs during the layouting. -
Constructor Summary
ConstructorsConstructorDescriptionDefaultConstructor.VerticalLayout(boolean useParent) Creates a new vertical layout. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(String name, Component comp) Adds the specified component with the specified name to the layout.booleanReturns, whether the parent's defined size is used during the layouting, or whether the childs are used to compute the size.voidlayoutContainer(Container parent) Lays out the container in the specified panel.minimumLayoutSize(Container parent) Calculates the minimum size dimensions for the specified panel given the components in the specified parent container.preferredLayoutSize(Container parent) Calculates the preferred size dimensions for the specified panel given the components in the specified parent container.voidRemoves the specified component from the layout.
-
Field Details
-
useSizeFromParent
private final boolean useSizeFromParentDefines, whether to use the parents size or whether to compute the size from the parent's childs during the layouting.
-
-
Constructor Details
-
VerticalLayout
public VerticalLayout()DefaultConstructor. -
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.- Parameters:
useParent- defines, whether the parent's size is used.
-
-
Method Details
-
addLayoutComponent
Adds the specified component with the specified name to the layout.- Specified by:
addLayoutComponentin interfaceLayoutManager- Parameters:
name- the component namecomp- the component to be added
-
removeLayoutComponent
Removes the specified component from the layout.- Specified by:
removeLayoutComponentin interfaceLayoutManager- Parameters:
comp- the component to be removed
-
preferredLayoutSize
Calculates the preferred size dimensions for the specified panel given the components in the specified parent container.- Specified by:
preferredLayoutSizein interfaceLayoutManager- Parameters:
parent- the component to be laid out- Returns:
- the preferred layout size
- See Also:
-
minimumLayoutSize
Calculates the minimum size dimensions for the specified panel given the components in the specified parent container.- Specified by:
minimumLayoutSizein interfaceLayoutManager- Parameters:
parent- the component to be laid out- Returns:
- the minimul layoutsize
- See Also:
-
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.- Returns:
- true, if the parent's size is used, false otherwise.
-
layoutContainer
Lays out the container in the specified panel.- Specified by:
layoutContainerin interfaceLayoutManager- Parameters:
parent- the component which needs to be laid out
-