| java.lang.Object org.apache.jorphan.gui.layout.VerticalLayout
VerticalLayout | public class VerticalLayout implements LayoutManager,Serializable(Code) | | 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 04 April 1999
author: Colin Mummery e-mail:equitysoft@iname.com author: Homepage:www.kagi.com/equitysoft - Based on 'FlexLayout' in Java author: class libraries Vol 2 Chan/Lee Addison-Wesley 1998 version: $Revision: 493784 $ |
Field Summary | |
final public static int | BOTH The horizontal alignment constant that designates stretching the
component horizontally. | final public static int | BOTTOM The anchoring constant that designates anchoring to the bottom of the
display area. | final public static int | CENTER The horizontal alignment constant that designates centering. | final public static int | LEFT The horizontal alignment constant that designates left justification. | final public static int | RIGHT The horizontal alignment constant that designates right justification. | final public static int | TOP The anchoring constant that designates anchoring to the top of the
display area. |
Constructor Summary | |
public | VerticalLayout() Constructs an instance of VerticalLayout with a vertical vgap of 5
pixels, horizontal centering and anchored to the top of the display area. | public | VerticalLayout(int vgap) Constructs a VerticalLayout instance with horizontal centering, anchored
to the top with the specified vgap. | public | VerticalLayout(int vgap, int alignment) Constructs a VerticalLayout instance anchored to the top with the
specified vgap and horizontal alignment. | public | VerticalLayout(int vgap, int alignment, int anchor) |
BOTH | final public static int BOTH(Code) | | The horizontal alignment constant that designates stretching the
component horizontally.
|
BOTTOM | final public static int BOTTOM(Code) | | The anchoring constant that designates anchoring to the bottom of the
display area.
|
CENTER | final public static int CENTER(Code) | | The horizontal alignment constant that designates centering. Also used to
designate center anchoring.
|
LEFT | final public static int LEFT(Code) | | The horizontal alignment constant that designates left justification.
|
RIGHT | final public static int RIGHT(Code) | | The horizontal alignment constant that designates right justification.
|
TOP | final public static int TOP(Code) | | The anchoring constant that designates anchoring to the top of the
display area.
|
VerticalLayout | public VerticalLayout()(Code) | | Constructs an instance of VerticalLayout with a vertical vgap of 5
pixels, horizontal centering and anchored to the top of the display area.
|
VerticalLayout | public VerticalLayout(int vgap)(Code) | | 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 thecomponents |
VerticalLayout | public VerticalLayout(int vgap, int alignment)(Code) | | 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 thecomponents Parameters: alignment - an int value which is one of RIGHT, LEFT,CENTER, BOTH for the horizontal alignment. |
VerticalLayout | public VerticalLayout(int vgap, int alignment, int anchor)(Code) | | Constructs a VerticalLayout instance with the specified vgap, horizontal
alignment and anchoring
Parameters: vgap - an int value indicating the vertical seperation of thecomponents Parameters: alignment - an int value which is one of RIGHT, LEFT, CENTER,BOTH for the horizontal alignment. Parameters: anchor - an int value which is one of TOP, BOTTOM,CENTER indicating where the components are to appear if the displayarea exceeds the minimum necessary. |
addLayoutComponent | public void addLayoutComponent(String name, Component comp)(Code) | | Not used by this class.
|
layoutContainer | public void layoutContainer(Container parent)(Code) | | Lays out the container.
|
removeLayoutComponent | public void removeLayoutComponent(Component comp)(Code) | | Not used by this class.
|
|
|