|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jorphan.gui.layout.VerticalLayout
public class VerticalLayout
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
Field Summary | |
---|---|
static int |
BOTH
The horizontal alignment constant that designates stretching the component horizontally. |
static int |
BOTTOM
The anchoring constant that designates anchoring to the bottom of the display area. |
static int |
CENTER
The horizontal alignment constant that designates centering. |
static int |
LEFT
The horizontal alignment constant that designates left justification. |
static int |
RIGHT
The horizontal alignment constant that designates right justification. |
static int |
TOP
The anchoring constant that designates anchoring to the top of the display area. |
Constructor Summary | |
---|---|
VerticalLayout()
Constructs an instance of VerticalLayout with a vertical vgap of 5 pixels, horizontal centering and anchored to the top of the display area. |
|
VerticalLayout(int vgap)
Constructs a VerticalLayout instance with horizontal centering, anchored to the top with the specified vgap. |
|
VerticalLayout(int vgap,
int alignment)
Constructs a VerticalLayout instance anchored to the top with the specified vgap and horizontal alignment. |
|
VerticalLayout(int vgap,
int alignment,
int anchor)
Constructs a VerticalLayout instance with the specified vgap, horizontal alignment and anchoring |
Method Summary | |
---|---|
void |
addLayoutComponent(String name,
Component comp)
Not used by this class. |
void |
layoutContainer(Container parent)
Lays out the container. |
Dimension |
minimumLayoutSize(Container parent)
|
Dimension |
preferredLayoutSize(Container parent)
|
void |
removeLayoutComponent(Component comp)
Not used by this class. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CENTER
public static final int RIGHT
public static final int LEFT
public static final int BOTH
public static final int TOP
public static final int BOTTOM
Constructor Detail |
---|
public VerticalLayout()
public VerticalLayout(int vgap)
vgap
- an int value indicating the vertical seperation of the
componentspublic VerticalLayout(int vgap, int alignment)
vgap
- an int value indicating the vertical seperation of the
componentsalignment
- an int value which is one of RIGHT, LEFT,
CENTER, BOTH
for the horizontal alignment.public VerticalLayout(int vgap, int alignment, int anchor)
vgap
- an int value indicating the vertical seperation of the
componentsalignment
- an int value which is one of RIGHT, LEFT, CENTER,
BOTH
for the horizontal alignment.anchor
- an int value which is one of TOP, BOTTOM,
CENTER
indicating where the components are to appear if the display
area exceeds the minimum necessary.Method Detail |
---|
public void layoutContainer(Container parent)
layoutContainer
in interface LayoutManager
public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize
in interface LayoutManager
public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize
in interface LayoutManager
public void addLayoutComponent(String name, Component comp)
addLayoutComponent
in interface LayoutManager
public void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
public String toString()
toString
in class Object
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |