nrs.util
Class VerticalLayout

java.lang.Object
  extended byjava.awt.GridLayout
      extended bynrs.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

Field Summary
static int LEFT_TO_RIGHT
           
static int RIGHT_TO_LEFT
           
 
Constructor Summary
VerticalLayout()
          Creates a new instance of VerticalLayout
VerticalLayout(int rows, int cols)
           
VerticalLayout(int rows, int cols, int hgap, int vgap)
           
 
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
 

Field Detail

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
Constructor Detail

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)
Method Detail

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>