-
- All Implemented Interfaces:
-
java.awt.LayoutManager
,java.io.Serializable
@Deprecated() public final class HorizontalFlowLayout 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 getAlignment() 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 getAnchor() 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 HorizontalFlowLayout(boolean ordered)
Constructs an instance of VerticalLayout with a vertical vgap of 5pixels, horizontal centering and anchored to the top of the display area. HorizontalFlowLayout(int hgap, boolean ordered)
Constructs a VerticalLayout instance with horizontal centering, anchoredto the top with the specified vgap. HorizontalFlowLayout(int hgap, int align, boolean ordered)
Constructs a VerticalLayout instance anchored to the top with thespecified hgap and horizontal alignment. HorizontalFlowLayout(int hgap, int align, int anchor, boolean ordered)
Constructs a VerticalLayout instance with the specified vgap, horizontalgetAlignment() and anchoring.
-
Method Summary
Modifier and Type Method Description void
layoutContainer(Container parent)
-
Methods inherited from class it.unibo.alchemist.boundary.gui.layouts.AFlowLayout
addLayoutComponent, getComponentOrder, getComponentsList, isOrdered, layoutContainer, 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
-
HorizontalFlowLayout
HorizontalFlowLayout(boolean ordered)
Constructs an instance of VerticalLayout with a vertical vgap of 5pixels, horizontal centering and anchored to the top of the display area.- Parameters:
ordered
- true if should be ordered
-
HorizontalFlowLayout
HorizontalFlowLayout(int hgap, boolean ordered)
Constructs a VerticalLayout instance with horizontal centering, anchoredto the top with the specified vgap.- Parameters:
hgap
- An int value indicating the vertical seperation of thecomponentsordered
- true if the components must be ordered
-
HorizontalFlowLayout
HorizontalFlowLayout(int hgap, int align, boolean ordered)
Constructs a VerticalLayout instance anchored to the top with thespecified hgap and horizontal alignment.- Parameters:
hgap
- An int value indicating the vertical seperation of thecomponentsalign
- An int value which is one ofRIGHT, LEFT, CENTER, BOTH
for the horizontalgetAlignment().ordered
- true if the components must be ordered
-
HorizontalFlowLayout
HorizontalFlowLayout(int hgap, int align, int anchor, boolean ordered)
Constructs a VerticalLayout instance with the specified vgap, horizontalgetAlignment() and anchoring.- Parameters:
hgap
- An int value indicating the vertical seperation of thecomponentsalign
- An int value which is one ofRIGHT, LEFT, CENTER, BOTH
for the horizontalgetAlignment().anchor
- An int value which is one ofTOP, BOTTOM, CENTER
indicating where thecomponents are to appear if the display area exceeds theminimum necessary.ordered
- true if the components must be ordered
-
-
Method Detail
-
layoutContainer
void layoutContainer(Container parent)
-
-
-
-