EspressReport ES
v 6.0

quadbase.reportorganizer.server
Class VerticalLayout

java.lang.Object
  |
  +--quadbase.reportorganizer.server.VerticalLayout
All Implemented Interfaces:
java.awt.LayoutManager

public class VerticalLayout
extends java.lang.Object
implements java.awt.LayoutManager

A vertical layout manager which arranges its components in a stack. Components take on their preferredSize, as with FlowLayout, and can be left-, center-, or right-aligned. This class should be generalized into a VariableGridLayout with optional row-major or column-major ordering for MxN components; right now it's just Mx1.


Field Summary
static int CENTER
          The center alignment value.
static int LEFT
          The left alignment value.
static int RIGHT
          The right alignment value.
 
Constructor Summary
VerticalLayout()
          Constructs a new Vertical Layout with the default left alignment.
VerticalLayout(int align)
          Constructs a new Vertical Layout with the specified alignment.
VerticalLayout(int align, int hgap, int vgap)
          Constructs a new Vertical Layout with the specified alignment and gap values.
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
          Adds the specified component to the layout.
 void layoutContainer(java.awt.Container target)
          Lays out the container.
 java.awt.Dimension minimumLayoutSize(java.awt.Container target)
          Returns the minimum dimensions needed to layout the components contained in the specified target container.
static java.awt.Panel newVerticalPanel()
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container target)
          Returns the preferred dimensions for this layout given the components in the specified target container.
 void removeLayoutComponent(java.awt.Component comp)
          Removes the specified component from the layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT

public static final int LEFT
The left alignment value.

CENTER

public static final int CENTER
The center alignment value.

RIGHT

public static final int RIGHT
The right alignment value.
Constructor Detail

VerticalLayout

public VerticalLayout()
Constructs a new Vertical Layout with the default left alignment.

VerticalLayout

public VerticalLayout(int align)
Constructs a new Vertical Layout with the specified alignment.
Parameters:
align - the alignment value

VerticalLayout

public VerticalLayout(int align,
                      int hgap,
                      int vgap)
Constructs a new Vertical Layout with the specified alignment and gap values.
Parameters:
align - the alignment value
hgap - the horizontal gap variable
vgap - the vertical gap variable
Method Detail

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Adds the specified component to the layout. Not used by this class.
Specified by:
addLayoutComponent in interface java.awt.LayoutManager
Parameters:
name - the name of the component
comp - the the component to be added

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout. Not used by this class.
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
Parameters:
comp - the component to remove

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
Returns the preferred dimensions for this layout given the components in the specified target container.
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Parameters:
target - the component which needs to be laid out
See Also:
Container, minimumLayoutSize(java.awt.Container)

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
Returns the minimum dimensions needed to layout the components contained in the specified target container.
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Parameters:
target - the component which needs to be laid out
See Also:
preferredLayoutSize(java.awt.Container)

layoutContainer

public void layoutContainer(java.awt.Container target)
Lays out the container. This method will actually reshape the components in the target in order to satisfy the constraints of the VerticalLayout object.
Specified by:
layoutContainer in interface java.awt.LayoutManager
Parameters:
target - the specified component being laid out.
See Also:
Container

newVerticalPanel

public static java.awt.Panel newVerticalPanel()

EspressReport ES
v 6.0