MDACC
Biostatistics

org.mdanderson.biostat.util
Class VerticalFlowLayout

java.lang.Object
  extended byorg.mdanderson.biostat.util.VerticalFlowLayout
All Implemented Interfaces:
LayoutManager

public class VerticalFlowLayout
extends Object
implements LayoutManager

VerticalFlowLayout - Vertical flow layout manager


Constructor Summary
VerticalFlowLayout()
          Class constructor
VerticalFlowLayout(int verticalGap)
          Class constructor specifying vertical gap
 
Method Summary
 void addLayoutComponent(String name, Component component)
          If the layout manager uses a per-component string, adds the component to the layout, associating it with the string argument.
 void layoutContainer(Container parent)
          Lays out the specified container
 Dimension minimumLayoutSize(Container parent)
          Calculates the minimum size dimensions for the specified container, given the components it contains.
 Dimension preferredLayoutSize(Container parent)
          Calculates the preferred size dimensions for the specified container, given the components it contains.
 void removeLayoutComponent(Component component)
          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
 

Constructor Detail

VerticalFlowLayout

public VerticalFlowLayout()
Class constructor


VerticalFlowLayout

public VerticalFlowLayout(int verticalGap)
Class constructor specifying vertical gap

Parameters:
verticalGap - gap to leave between vertically stacked components
Method Detail

addLayoutComponent

public void addLayoutComponent(String name,
                               Component component)
If the layout manager uses a per-component string, adds the component to the layout, associating it with the string argument. Unused.

Specified by:
addLayoutComponent in interface LayoutManager
Parameters:
name - string to be associated with the component
component - component to be added

removeLayoutComponent

public void removeLayoutComponent(Component component)
Removes the specified component from the layout.

Specified by:
removeLayoutComponent in interface LayoutManager
Parameters:
component - component to be added

preferredLayoutSize

public Dimension preferredLayoutSize(Container parent)
Calculates the preferred size dimensions for the specified container, given the components it contains.

Specified by:
preferredLayoutSize in interface LayoutManager
Parameters:
parent - container to be laid out
Returns:
dimension containing preferred size of the container

minimumLayoutSize

public Dimension minimumLayoutSize(Container parent)
Calculates the minimum size dimensions for the specified container, given the components it contains.

Specified by:
minimumLayoutSize in interface LayoutManager
Parameters:
parent - container to be laid out
Returns:
dimension containing minimum size of the container

layoutContainer

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

Specified by:
layoutContainer in interface LayoutManager
Parameters:
parent - container to be laid out

MDACC
Biostatistics

Copyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.