org.mdanderson.biostat.util
public class VerticalFlowLayout extends Object implements LayoutManager
Constructor and Description |
---|
VerticalFlowLayout()
Class constructor
|
VerticalFlowLayout(int verticalGap)
Class constructor specifying vertical gap
|
Modifier and Type | Method and Description |
---|---|
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.
|
public VerticalFlowLayout()
public VerticalFlowLayout(int verticalGap)
verticalGap
- gap to leave between vertically stacked componentspublic void addLayoutComponent(String name, Component component)
addLayoutComponent
in interface LayoutManager
name
- string to be associated with the componentcomponent
- component to be addedpublic void removeLayoutComponent(Component component)
removeLayoutComponent
in interface LayoutManager
component
- component to be addedpublic Dimension preferredLayoutSize(Container parent)
preferredLayoutSize
in interface LayoutManager
parent
- container to be laid outpublic Dimension minimumLayoutSize(Container parent)
minimumLayoutSize
in interface LayoutManager
parent
- container to be laid outpublic void layoutContainer(Container parent)
layoutContainer
in interface LayoutManager
parent
- container to be laid outCopyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.