Package com.kheops.ui.layout
Class VerticalFlowLayout
java.lang.Object
java.awt.FlowLayout
com.kheops.ui.layout.VerticalFlowLayout
- All Implemented Interfaces:
- LayoutManager,- Serializable
VFlowLayout is similar to FlowLayout except it lays out components
 vertically. 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.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class java.awt.FlowLayoutLEADING, TRAILING
- 
Constructor SummaryConstructorsConstructorDescriptionConstruct 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 SummaryModifier and TypeMethodDescriptionintintgetHgap()Gets the horizontal gap between components.booleanbooleanintgetVgap()Gets the vertical gap between components.voidlayoutContainer(Container target) Lays out the container.minimumLayoutSize(Container target) Returns the minimum size needed to layout the target containerpreferredLayoutSize(Container target) Returns the preferred dimensions given the components in the target container.voidsetAlignment(int HAlign, int VAlign) voidsetHgap(int hgap) Sets the horizontal gap between components.voidsetHorizontalFill(boolean hfill) voidsetVerticalFill(boolean vfill) voidsetVgap(int vgap) Sets the vertical gap between components.Methods inherited from class java.awt.FlowLayoutaddLayoutComponent, getAlignOnBaseline, removeLayoutComponent, setAlignment, setAlignOnBaseline, toString
- 
Field Details- 
TOPpublic static final int TOP- See Also:
 
- 
MIDDLEpublic static final int MIDDLE- See Also:
 
- 
BOTTOMpublic static final int BOTTOM- See Also:
 
- 
LEFTpublic static final int LEFT- See Also:
 
- 
CENTERpublic static final int CENTER- See Also:
 
- 
RIGHTpublic static final int RIGHT- See Also:
 
 
- 
- 
Constructor Details- 
VerticalFlowLayoutpublic VerticalFlowLayout()Construct a new VerticalFlowLayout with a middle alignemnt, and the fill to edge flag set.
- 
VerticalFlowLayoutpublic VerticalFlowLayout(boolean hfill, boolean vfill) Construct a new VerticalFlowLayout with a middle alignemnt.- Parameters:
- hfill- the fill to edge flag
- vfill- the fill to bottom flag
 
- 
VerticalFlowLayoutpublic VerticalFlowLayout(int align) Construct a new VerticalFlowLayout with a middle alignemnt.- Parameters:
- align- the alignment value
 
- 
VerticalFlowLayoutpublic VerticalFlowLayout(int align, boolean hfill, boolean vfill) Construct a new VerticalFlowLayout.- Parameters:
- align- the alignment value
- hfill- the hfill to edge flag
- vfill- the fill to bottom flag
 
- 
VerticalFlowLayoutpublic VerticalFlowLayout(int align, int hgap, int vgap, boolean hfill, boolean vfill) Construct a new VerticalFlowLayout.- Parameters:
- align- the alignment value
- hgap- the horizontal gap variable
- vgap- the vertical gap variable
- hfill- the fill to edge flag
- vfill- the fill to bottom flag
 
 
- 
- 
Method Details- 
getHgappublic int getHgap()Gets the horizontal gap between components.- Overrides:
- getHgapin class- FlowLayout
- Returns:
- the horizontal gap between components.
- Since:
- JDK1.1
- See Also:
 
- 
setHgappublic void setHgap(int hgap) Sets the horizontal gap between components.- Overrides:
- setHgapin class- FlowLayout
- Parameters:
- hgap- the horizontal gap
 
- 
getVgappublic int getVgap()Gets the vertical gap between components.- Overrides:
- getVgapin class- FlowLayout
 
- 
setVgappublic void setVgap(int vgap) Sets the vertical gap between components.- Overrides:
- setVgapin class- FlowLayout
- Parameters:
- vgap- the vertical gap
 
- 
preferredLayoutSizeReturns the preferred dimensions given the components in the target container.- Specified by:
- preferredLayoutSizein interface- LayoutManager
- Overrides:
- preferredLayoutSizein class- FlowLayout
- Parameters:
- target- the component to lay out
 
- 
minimumLayoutSizeReturns the minimum size needed to layout the target container- Specified by:
- minimumLayoutSizein interface- LayoutManager
- Overrides:
- minimumLayoutSizein class- FlowLayout
- Parameters:
- target- the component to lay out
 
- 
setVerticalFillpublic void setVerticalFill(boolean vfill) 
- 
getVerticalFillpublic boolean getVerticalFill()
- 
setHorizontalFillpublic void setHorizontalFill(boolean hfill) 
- 
getHorizontalFillpublic boolean getHorizontalFill()
- 
setAlignmentpublic void setAlignment(int HAlign, int VAlign) 
- 
getAlignmentpublic int getAlignment()- Overrides:
- getAlignmentin class- FlowLayout
 
- 
layoutContainerLays out the container.- Specified by:
- layoutContainerin interface- LayoutManager
- Overrides:
- layoutContainerin class- FlowLayout
- Parameters:
- target- the container to lay out.
 
 
-