nrs.util
Class VerticalLayout
java.lang.Object
java.awt.GridLayout
nrs.util.VerticalLayout
- All Implemented Interfaces:
- java.awt.LayoutManager, java.io.Serializable
- public class VerticalLayout
- extends java.awt.GridLayout
Extension of GridLayout that lays out components vertically
- Author:
- Copyright © 2004-2005 Nick Sydenham <nsydenham@yahoo.co.uk>
- See Also:
- Serialized Form
Method Summary |
void |
layoutContainer(java.awt.Container parent)
|
void |
setOrientation(int orientation)
Set the orientation to either left to right or right to left |
Methods inherited from class java.awt.GridLayout |
addLayoutComponent, getColumns, getHgap, getRows, getVgap, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setColumns, setHgap, setRows, setVgap, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LEFT_TO_RIGHT
public static final int LEFT_TO_RIGHT
- See Also:
- Constant Field Values
RIGHT_TO_LEFT
public static final int RIGHT_TO_LEFT
- See Also:
- Constant Field Values
VerticalLayout
public VerticalLayout()
- Creates a new instance of VerticalLayout
VerticalLayout
public VerticalLayout(int rows,
int cols)
VerticalLayout
public VerticalLayout(int rows,
int cols,
int hgap,
int vgap)
setOrientation
public void setOrientation(int orientation)
- Set the orientation to either left to right or right to left
- Parameters:
orientation
- either LEFT_TO_RIGHT or RIGHT_TO_LEFT
layoutContainer
public void layoutContainer(java.awt.Container parent)
Copyright © 2004-2005 Nick Sydenham <nsydenham@yahoo.co.uk>