Class VerticalFlowLayout
-
- All Implemented Interfaces:
-
java.awt.LayoutManager
,java.io.Serializable
@Deprecated() public final class VerticalFlowLayout extends AFlowLayout
A vertical layout manager similar to java.awt.FlowLayout. Like FlowLayout components do not expand to fill available space except when the horizontal alignment is
BOTH
in which case components are stretched horizontally. Unlike FlowLayout, components will not wrap to form another column if there isn't enough space vertically. VerticalLayout can optionally anchor components to the top or bottom of the display area or center them between the top and bottom. Revision date 12th July 2001 Homepage:www.kagi.com/equitysoft - Based on 'FlexLayout' in Java class libraries Vol 2 Chan/Lee Addison-Wesley 1998
-
-
Constructor Summary
Constructors Constructor Description VerticalFlowLayout(boolean ordered)
Constructs an instance of VerticalLayout with a vertical vgap of 5 pixels, horizontal centering and anchored to the top of the display area. VerticalFlowLayout(int vgap, boolean ordered)
Constructs a VerticalLayout instance with horizontal centering, anchored to the top with the specified vgap. VerticalFlowLayout(int vgap, int alignment, boolean ordered)
Constructs a VerticalLayout instance anchored to the top with the specified vgap and horizontal alignment. VerticalFlowLayout(int vgap, int alignment, int anchor, boolean ordered)
Constructs a VerticalLayout instance with the specified vgap, horizontal alignment and anchoring.
-
Method Summary
Modifier and Type Method Description void
layoutContainer(Container parent)
Lays out the container. -
Methods inherited from class it.unibo.alchemist.boundary.swingui.tape.impl.AFlowLayout
addLayoutComponent, getComponentOrder, getComponentsList, isOrdered, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setComponentOrder, toString
-
Methods inherited from class java.awt.LayoutManager
addLayoutComponent, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
VerticalFlowLayout
VerticalFlowLayout(boolean ordered)
Constructs an instance of VerticalLayout with a vertical vgap of 5 pixels, horizontal centering and anchored to the top of the display area.- Parameters:
ordered
- true if the components must be ordered
-
VerticalFlowLayout
VerticalFlowLayout(int vgap, boolean ordered)
Constructs a VerticalLayout instance with horizontal centering, anchored to the top with the specified vgap.- Parameters:
vgap
- An int value indicating the vertical seperation of the componentsordered
- true if the components must be ordered
-
VerticalFlowLayout
VerticalFlowLayout(int vgap, int alignment, boolean ordered)
Constructs a VerticalLayout instance anchored to the top with the specified vgap and horizontal alignment.- Parameters:
vgap
- An int value indicating the vertical seperation of the componentsalignment
- An int value which is one ofRIGHT, LEFT, CENTER, BOTH
for the horizontal alignment.ordered
- true if the components must be ordered
-
VerticalFlowLayout
VerticalFlowLayout(int vgap, int alignment, int anchor, boolean ordered)
Constructs a VerticalLayout instance with the specified vgap, horizontal alignment and anchoring.- Parameters:
vgap
- An int value indicating the vertical seperation of the componentsalignment
- An int value which is one ofRIGHT, LEFT, CENTER, BOTH
for the horizontal alignment.anchor
- An int value which is one ofTOP, BOTTOM, CENTER
indicating where the components are to appear if the display area exceeds the minimum necessary.ordered
- true if the components must be ordered
-
-
Method Detail
-
layoutContainer
void layoutContainer(Container parent)
Lays out the container.
-
-
-
-