Class OverlayLayout
- java.lang.Object
-
- org.pentaho.reporting.libraries.designtime.swing.OverlayLayout
-
- All Implemented Interfaces:
LayoutManager
public final class OverlayLayout extends Object implements 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
Constructors Constructor Description OverlayLayout()
DefaultConstructor.OverlayLayout(boolean ignoreInvisible)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLayoutComponent(String name, Component comp)
If the layout manager uses a per-component string, adds the componentcomp
to the layout, associating it with the string specified byname
.void
layoutContainer(Container parent)
Lays out the specified container.Dimension
minimumLayoutSize(Container parent)
Calculates the minimum size dimensions for the specified container, given the components it contains.Dimension
preferredLayoutSize(Container parent)
Calculates the preferred size dimensions for the specified container, given the components it contains.void
removeLayoutComponent(Component comp)
Removes the specified component from the layout.
-
-
-
Method Detail
-
addLayoutComponent
public void addLayoutComponent(String name, Component comp)
If the layout manager uses a per-component string, adds the componentcomp
to the layout, associating it with the string specified byname
.- Specified by:
addLayoutComponent
in interfaceLayoutManager
- Parameters:
name
- the string to be associated with the componentcomp
- the component to be added
-
removeLayoutComponent
public void removeLayoutComponent(Component comp)
Removes the specified component from the layout.- Specified by:
removeLayoutComponent
in interfaceLayoutManager
- Parameters:
comp
- the component to be removed
-
layoutContainer
public void layoutContainer(Container parent)
Lays out the specified container.- Specified by:
layoutContainer
in interfaceLayoutManager
- Parameters:
parent
- the container to be laid out
-
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
Calculates the minimum size dimensions for the specified container, given the components it contains.- Specified by:
minimumLayoutSize
in interfaceLayoutManager
- Parameters:
parent
- the component to be laid out- Returns:
- the minimum size computed for the parent.
- See Also:
preferredLayoutSize(java.awt.Container)
-
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
Calculates the preferred size dimensions for the specified container, given the components it contains.- Specified by:
preferredLayoutSize
in interfaceLayoutManager
- Parameters:
parent
- the container to be laid out- Returns:
- the preferred size computed for the parent.
- See Also:
minimumLayoutSize(java.awt.Container)
-
-