Class NullLayoutManager
java.lang.Object
org.htmlparser.parserapplications.filterbuilder.layouts.NullLayoutManager
- All Implemented Interfaces:
LayoutManager
,LayoutManager2
,Serializable
A layout manager that doesn't move things around.
Attempts to set the bounds of components to accomodate them
but doesn't move them.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayoutComponent
(Component comp, Object constraints) Adds the specified component to the layout, using the specified constraint object.void
addLayoutComponent
(String name, Component comp) Adds the specified component with the specified name to the layout.float
getLayoutAlignmentX
(Container target) Returns the alignment along the x axis.float
getLayoutAlignmentY
(Container target) Returns the alignment along the y axis.void
invalidateLayout
(Container target) Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.void
layoutContainer
(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.void
Removes the specified component from the layout.
-
Constructor Details
-
NullLayoutManager
public NullLayoutManager()Constructs a NullLayoutManager object.
-
-
Method Details
-
minimumLayoutSize
Calculates the minimum size dimensions for the specified panel given the components in the specified parent container.- Specified by:
minimumLayoutSize
in 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:
preferredLayoutSize
in 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:
maximumLayoutSize
in 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:
addLayoutComponent
in interfaceLayoutManager
- Parameters:
name
- the component namecomp
- the component to be added
-
removeLayoutComponent
Removes the specified component from the layout.- Specified by:
removeLayoutComponent
in interfaceLayoutManager
- Parameters:
comp
- the component ot be removed
-
layoutContainer
Lays out the container.- Specified by:
layoutContainer
in 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:
addLayoutComponent
in 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:
getLayoutAlignmentX
in 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:
getLayoutAlignmentY
in 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:
invalidateLayout
in interfaceLayoutManager2
- Parameters:
target
- The target container.
-