| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.FlowLayout
org.equanda.util.swing.layout.VerticalFlowLayout
public class VerticalFlowLayout
Vertical versions of FlowLayout. Extends FlowLayout because it mimics much of the behavior of the FlowLayout class, except vertically. An additional feature is that you can specify a fill to edge flag, which causes the VerticalFlowLayout manager to resize all components to expand to the column width Warning: This causes problems when the main panel has less space that it needs and it seems to prohibit multi-column output. Additionally there is a vertical fill flag, which fills the last component to the remaining height of the container.
| Field Summary | |
|---|---|
static int | 
BOTTOM
 | 
static int | 
MIDDLE
 | 
static int | 
TOP
 | 
| Fields inherited from class java.awt.FlowLayout | 
|---|
CENTER, LEADING, LEFT, RIGHT, TRAILING | 
| Constructor Summary | |
|---|---|
VerticalFlowLayout()
Construct a new VerticalFlowLayout with a middle alignemnt, and the fill to edge flag set.  | 
|
VerticalFlowLayout(boolean hfill,
                   boolean vfill)
Construct a new VerticalFlowLayout with a middle alignemnt.  | 
|
VerticalFlowLayout(int align)
Construct a new VerticalFlowLayout with a middle alignemnt.  | 
|
VerticalFlowLayout(int align,
                   boolean hfill,
                   boolean vfill)
Construct a new VerticalFlowLayout.  | 
|
VerticalFlowLayout(int align,
                   int hgap,
                   int vgap,
                   boolean hfill,
                   boolean vfill)
Construct a new VerticalFlowLayout.  | 
|
| Method Summary | |
|---|---|
 int | 
getHgap()
Gets the horizontal gap between components.  | 
 boolean | 
getHorizontalFill()
 | 
 boolean | 
getVerticalFill()
 | 
 int | 
getVgap()
Gets the vertical gap between components.  | 
 void | 
layoutContainer(Container target)
Lays out the container.  | 
 Dimension | 
minimumLayoutSize(Container target)
Returns the minimum size needed to layout the target container  | 
 Dimension | 
preferredLayoutSize(Container target)
Returns the preferred dimensions given the components in the target container.  | 
 void | 
setHgap(int hgap)
Sets the horizontal gap between components.  | 
 void | 
setHorizontalFill(boolean horizontalFill)
 | 
 void | 
setVerticalFill(boolean verticalFill)
 | 
 void | 
setVgap(int vgap)
Sets the vertical gap between components.  | 
| Methods inherited from class java.awt.FlowLayout | 
|---|
addLayoutComponent, getAlignment, removeLayoutComponent, setAlignment, toString | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final int TOP
public static final int MIDDLE
public static final int BOTTOM
| Constructor Detail | 
|---|
public VerticalFlowLayout()
public VerticalFlowLayout(boolean hfill,
                          boolean vfill)
hfill - horizontal fill flagvfill - vertical fill flagpublic VerticalFlowLayout(int align)
align - the alignment value
public VerticalFlowLayout(int align,
                          boolean hfill,
                          boolean vfill)
align - the alignment valuehfill - the horizontal fill to edge flagvfill - the vertical fill to edge flag
public VerticalFlowLayout(int align,
                          int hgap,
                          int vgap,
                          boolean hfill,
                          boolean vfill)
align - the alignment valuehgap - the horizontal gap variablevgap - the vertical gap variablehfill - the horizontal fill to edge flagvfill - the vertical fill to edge flag| Method Detail | 
|---|
public int getHgap()
getHgap in class FlowLayoutFlowLayout.setHgap(int)public void setHgap(int hgap)
setHgap in class FlowLayoutpublic int getVgap()
getVgap in class FlowLayoutpublic void setVgap(int vgap)
setVgap in class FlowLayoutpublic Dimension preferredLayoutSize(Container target)
preferredLayoutSize in interface LayoutManagerpreferredLayoutSize in class FlowLayouttarget - the component to lay outpublic Dimension minimumLayoutSize(Container target)
minimumLayoutSize in interface LayoutManagerminimumLayoutSize in class FlowLayouttarget - the component to lay outpublic void setVerticalFill(boolean verticalFill)
public boolean getVerticalFill()
public void setHorizontalFill(boolean horizontalFill)
public boolean getHorizontalFill()
public void layoutContainer(Container target)
layoutContainer in interface LayoutManagerlayoutContainer in class FlowLayouttarget - the container to lay out.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||