rvl.awt
Class RVLayout

java.lang.Object
  |
  +--rvl.awt.RVLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.io.Serializable

public class RVLayout
extends java.lang.Object
implements java.awt.LayoutManager, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
RVLayout()
          Construct a new RVLayout with default of 2 columns
RVLayout(int ncols)
          Construct a new RVLayout with ncols columns
RVLayout(int ncols, boolean stretchrows, boolean stretchcols)
          Construct a new RVLayout with ncols columns and specified enabling of stretching of components
RVLayout(int ncols, int hgap, int vgap)
          Construct a new RVLayout with ncols columns and specified gaps between components
RVLayout(int ncols, int hgap, int vgap, boolean stretchrows, boolean stretchcols)
          Construct a new RVLayout with ncols columns, specified gaps between components, and specified enabling of stretching of components
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
           
 int getHgap()
           
 int getVgap()
           
 void horzFill(java.awt.Container parent)
          Reserve a place for a stretchable horizontal gap (glue) in the layout.
 boolean[] isStretchable()
           
 void layoutContainer(java.awt.Container parent)
           
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
           
 void removeLayoutComponent(java.awt.Component comp)
           
 void setColWidth(int column, int width)
          Set the width of a particular column
 void setHgap(int gap)
           
 void setRowHeight(int row, int height)
          Set the height of a particular row
 void setStretchable(boolean rows, boolean cols)
           
 void setVgap(int gap)
           
 void vertFill(java.awt.Container parent)
          Reserve a place for a stretchable vertical gap (glue) in the layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RVLayout

public RVLayout()
Construct a new RVLayout with default of 2 columns

RVLayout

public RVLayout(int ncols)
Construct a new RVLayout with ncols columns

RVLayout

public RVLayout(int ncols,
                int hgap,
                int vgap)
Construct a new RVLayout with ncols columns and specified gaps between components

RVLayout

public RVLayout(int ncols,
                boolean stretchrows,
                boolean stretchcols)
Construct a new RVLayout with ncols columns and specified enabling of stretching of components

RVLayout

public RVLayout(int ncols,
                int hgap,
                int vgap,
                boolean stretchrows,
                boolean stretchcols)
Construct a new RVLayout with ncols columns, specified gaps between components, and specified enabling of stretching of components
Method Detail

setHgap

public void setHgap(int gap)

setVgap

public void setVgap(int gap)

getHgap

public int getHgap()

getVgap

public int getVgap()

setStretchable

public void setStretchable(boolean rows,
                           boolean cols)

isStretchable

public boolean[] isStretchable()

setColWidth

public void setColWidth(int column,
                        int width)
Set the width of a particular column

setRowHeight

public void setRowHeight(int row,
                         int height)
Set the height of a particular row

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

layoutContainer

public void layoutContainer(java.awt.Container parent)
Specified by:
layoutContainer in interface java.awt.LayoutManager

horzFill

public void horzFill(java.awt.Container parent)
Reserve a place for a stretchable horizontal gap (glue) in the layout. Applicable only when stretchRows = false

vertFill

public void vertFill(java.awt.Container parent)
Reserve a place for a stretchable vertical gap (glue) in the layout. Applicable only when stretchCols = false