Class VerticalLayoutManager
- java.lang.Object
-
- org.htmlparser.parserapplications.filterbuilder.layouts.VerticalLayoutManager
-
- All Implemented Interfaces:
java.awt.LayoutManager,java.awt.LayoutManager2,java.io.Serializable
public class VerticalLayoutManager extends java.lang.Object implements java.awt.LayoutManager2, java.io.SerializableA layout manager like a vertical FlowLayout. Stacks components vertically like GridLayout(0,1) but doesn't resize each component equally. More like a vertical FlowLayout but doesn't snake columns or align things.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VerticalLayoutManager()Constructs a VerticalLayoutManager object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLayoutComponent(java.awt.Component comp, java.lang.Object constraints)Adds the specified component to the layout, using the specified constraint object.voidaddLayoutComponent(java.lang.String name, java.awt.Component comp)Adds the specified component with the specified name to the layout.floatgetLayoutAlignmentX(java.awt.Container target)Returns the alignment along the x axis.floatgetLayoutAlignmentY(java.awt.Container target)Returns the alignment along the y axis.voidinvalidateLayout(java.awt.Container target)Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.voidlayoutContainer(java.awt.Container target)Lays out the container.java.awt.DimensionmaximumLayoutSize(java.awt.Container target)Returns the maximum size of this component.java.awt.DimensionminimumLayoutSize(java.awt.Container target)Calculates the minimum size dimensions for the specified panel given the components in the specified parent container.java.awt.DimensionpreferredLayoutSize(java.awt.Container target)Calculates the preferred size dimensions for the specified panel given the components in the specified parent container.voidremoveLayoutComponent(java.awt.Component comp)Removes the specified component from the layout.
-
-
-
Method Detail
-
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
Calculates the minimum size dimensions for the specified panel given the components in the specified parent container.- Specified by:
minimumLayoutSizein interfacejava.awt.LayoutManager- Parameters:
target- The component to be laid out.- Returns:
- The minimum size.
- See Also:
preferredLayoutSize(java.awt.Container)
-
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
Calculates the preferred size dimensions for the specified panel given the components in the specified parent container.- Specified by:
preferredLayoutSizein interfacejava.awt.LayoutManager- Parameters:
target- The component to be laid out.- Returns:
- A size deemed suitable for laying out the container.
- See Also:
minimumLayoutSize(java.awt.Container)
-
maximumLayoutSize
public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
Returns the maximum size of this component.- Specified by:
maximumLayoutSizein interfacejava.awt.LayoutManager2- Parameters:
target- The component to be laid out.- Returns:
- The maximum size for the container.
- See Also:
preferredLayoutSize(java.awt.Container)
-
addLayoutComponent
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)Adds the specified component with the specified name to the layout.- Specified by:
addLayoutComponentin interfacejava.awt.LayoutManager- Parameters:
name- the component namecomp- the component to be added
-
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout.- Specified by:
removeLayoutComponentin interfacejava.awt.LayoutManager- Parameters:
comp- the component ot be removed
-
layoutContainer
public void layoutContainer(java.awt.Container target)
Lays out the container.- Specified by:
layoutContainerin interfacejava.awt.LayoutManager- Parameters:
target- The container which needs to be laid out.
-
addLayoutComponent
public void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)Adds the specified component to the layout, using the specified constraint object.- Specified by:
addLayoutComponentin interfacejava.awt.LayoutManager2- Parameters:
comp- the component to be addedconstraints- where/how the component is added to the layout.
-
getLayoutAlignmentX
public float getLayoutAlignmentX(java.awt.Container target)
Returns the alignment along the x axis. This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.- Specified by:
getLayoutAlignmentXin interfacejava.awt.LayoutManager2- Parameters:
target- The target container.- Returns:
- The X-axis alignment.
-
getLayoutAlignmentY
public float getLayoutAlignmentY(java.awt.Container target)
Returns the alignment along the y axis. This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.- Specified by:
getLayoutAlignmentYin interfacejava.awt.LayoutManager2- Parameters:
target- The target container.- Returns:
- The Y-axis alignment.
-
invalidateLayout
public void invalidateLayout(java.awt.Container target)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.- Specified by:
invalidateLayoutin interfacejava.awt.LayoutManager2- Parameters:
target- The target container.
-
-