Class VerticalLayoutManager
java.lang.Object
org.htmlparser.parserapplications.filterbuilder.layouts.VerticalLayoutManager
- All Implemented Interfaces:
LayoutManager,LayoutManager2,Serializable
A 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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(Component comp, Object constraints) Adds the specified component to the layout, using the specified constraint object.voidaddLayoutComponent(String name, Component comp) Adds the specified component with the specified name to the layout.floatgetLayoutAlignmentX(Container target) Returns the alignment along the x axis.floatgetLayoutAlignmentY(Container target) Returns the alignment along the y axis.voidinvalidateLayout(Container target) Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.voidlayoutContainer(Container target) Lays out the container.maximumLayoutSize(Container target) Returns the maximum size of this component.minimumLayoutSize(Container target) Calculates the minimum size dimensions for the specified panel given the components in the specified parent container.preferredLayoutSize(Container target) Calculates the preferred size dimensions for the specified panel given the components in the specified parent container.voidRemoves the specified component from the layout.
-
Constructor Details
-
VerticalLayoutManager
public VerticalLayoutManager()Constructs a VerticalLayoutManager object.
-
-
Method Details
-
minimumLayoutSize
Calculates the minimum size dimensions for the specified panel given the components in the specified parent container.- Specified by:
minimumLayoutSizein interfaceLayoutManager- Parameters:
target- The component to be laid out.- Returns:
- The minimum size.
- See Also:
-
preferredLayoutSize
Calculates the preferred size dimensions for the specified panel given the components in the specified parent container.- Specified by:
preferredLayoutSizein interfaceLayoutManager- Parameters:
target- The component to be laid out.- Returns:
- A size deemed suitable for laying out the container.
- See Also:
-
maximumLayoutSize
Returns the maximum size of this component.- Specified by:
maximumLayoutSizein interfaceLayoutManager2- Parameters:
target- The component to be laid out.- Returns:
- The maximum size for the container.
- See Also:
-
addLayoutComponent
Adds the specified component with the specified name to the layout.- Specified by:
addLayoutComponentin interfaceLayoutManager- Parameters:
name- the component namecomp- the component to be added
-
removeLayoutComponent
Removes the specified component from the layout.- Specified by:
removeLayoutComponentin interfaceLayoutManager- Parameters:
comp- the component ot be removed
-
layoutContainer
Lays out the container.- Specified by:
layoutContainerin interfaceLayoutManager- Parameters:
target- The container which needs to be laid out.
-
addLayoutComponent
Adds the specified component to the layout, using the specified constraint object.- Specified by:
addLayoutComponentin interfaceLayoutManager2- Parameters:
comp- the component to be addedconstraints- where/how the component is added to the layout.
-
getLayoutAlignmentX
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 interfaceLayoutManager2- Parameters:
target- The target container.- Returns:
- The X-axis alignment.
-
getLayoutAlignmentY
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 interfaceLayoutManager2- Parameters:
target- The target container.- Returns:
- The Y-axis alignment.
-
invalidateLayout
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.- Specified by:
invalidateLayoutin interfaceLayoutManager2- Parameters:
target- The target container.
-