Class OverlayLayout
java.lang.Object
org.pentaho.reporting.libraries.designtime.swing.OverlayLayout
- All Implemented Interfaces:
LayoutManager
A simple layoutmanager to overlay all components of a parent.
This layout manager acts similiar to the card layout, but all childs of the parent band have the same size and all
childs can be visible at the same time.
- Author:
- Thomas Morgner
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultConstructor.OverlayLayout(boolean ignoreInvisible) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(String name, Component comp) If the layout manager uses a per-component string, adds the componentcompto the layout, associating it with the string specified byname.voidlayoutContainer(Container parent) Lays out the specified container.minimumLayoutSize(Container parent) Calculates the minimum size dimensions for the specified container, given the components it contains.preferredLayoutSize(Container parent) Calculates the preferred size dimensions for the specified container, given the components it contains.voidRemoves the specified component from the layout.
-
Constructor Details
-
OverlayLayout
public OverlayLayout(boolean ignoreInvisible) Creates a new instance.- Parameters:
ignoreInvisible- whether to ignore invisible components when computing the layout.
-
OverlayLayout
public OverlayLayout()DefaultConstructor.
-
-
Method Details
-
addLayoutComponent
If the layout manager uses a per-component string, adds the componentcompto the layout, associating it with the string specified byname.- Specified by:
addLayoutComponentin interfaceLayoutManager- Parameters:
name- the string to be associated with the componentcomp- the component to be added
-
removeLayoutComponent
Removes the specified component from the layout.- Specified by:
removeLayoutComponentin interfaceLayoutManager- Parameters:
comp- the component to be removed
-
layoutContainer
Lays out the specified container.- Specified by:
layoutContainerin interfaceLayoutManager- Parameters:
parent- the container to be laid out
-
minimumLayoutSize
Calculates the minimum size dimensions for the specified container, given the components it contains.- Specified by:
minimumLayoutSizein interfaceLayoutManager- Parameters:
parent- the component to be laid out- Returns:
- the minimum size computed for the parent.
- See Also:
-
preferredLayoutSize
Calculates the preferred size dimensions for the specified container, given the components it contains.- Specified by:
preferredLayoutSizein interfaceLayoutManager- Parameters:
parent- the container to be laid out- Returns:
- the preferred size computed for the parent.
- See Also:
-