org.jurvis.awt
Class JvColumnLayout

java.lang.Object
  extended by org.jurvis.awt.JvAbstractLayoutManager
      extended by org.jurvis.awt.JvAbstractLayoutManager2
          extended by org.jurvis.awt.JvColumnLayout
All Implemented Interfaces:
LayoutManager, LayoutManager2

public class JvColumnLayout
extends JvAbstractLayoutManager2

A layout manager which arrange components in a column. Each components can independently be left-aligned, center-aligned, right-aligned or stretched horizontally to fill the available space.

Author:
Neil W. Weber

Field Summary
static String CENTER
           
static String FILL
           
static String LEFT
           
static String RIGHT
           
 
Fields inherited from class org.jurvis.awt.JvAbstractLayoutManager2
constraintsMap
 
Fields inherited from class org.jurvis.awt.JvAbstractLayoutManager
gap
 
Constructor Summary
JvColumnLayout()
          Construct a new JvColumnLayout with a 2 pixel gap between components.
JvColumnLayout(int gap)
          Construct a new JvColumnFillLayout with the specified gap between components.
 
Method Summary
 void layoutContainer(Container parent)
          Lays out the container in the specified panel.
 
Methods inherited from class org.jurvis.awt.JvAbstractLayoutManager2
addLayoutComponent, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, maximumLayoutSize, removeLayoutComponent, setConstraints
 
Methods inherited from class org.jurvis.awt.JvAbstractLayoutManager
addLayoutComponent, minimumLayoutSize, preferredLayoutSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.LayoutManager
addLayoutComponent, minimumLayoutSize, preferredLayoutSize
 

Field Detail

LEFT

public static final String LEFT
See Also:
Constant Field Values

RIGHT

public static final String RIGHT
See Also:
Constant Field Values

CENTER

public static final String CENTER
See Also:
Constant Field Values

FILL

public static final String FILL
See Also:
Constant Field Values
Constructor Detail

JvColumnLayout

public JvColumnLayout()
Construct a new JvColumnLayout with a 2 pixel gap between components.


JvColumnLayout

public JvColumnLayout(int gap)
Construct a new JvColumnFillLayout with the specified gap between components.

Parameters:
gap - pixel gap between components
Method Detail

layoutContainer

public void layoutContainer(Container parent)
Lays out the container in the specified panel.

Parameters:
parent - the component which needs to be laid out


Copyright © 1999-2004 Neil W. Weber. All Rights Reserved.