org.jfree.ui
Class OverlayLayout
java.lang.Object
org.jfree.ui.OverlayLayout
- LayoutManager
extends java.lang.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.
void | addLayoutComponent(String name, Component comp) - If the layout manager uses a per-component string,
adds the component
comp to the layout,
associating it
with the string specified by name .
|
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.
|
OverlayLayout
public OverlayLayout(boolean ignoreInvisible)
Creates a new instance.
ignoreInvisible
- whether to ignore invisible components when computing the layout.
addLayoutComponent
public void addLayoutComponent(String name,
Component comp)
If the layout manager uses a per-component string,
adds the component comp
to the layout,
associating it
with the string specified by name
.
name
- the string to be associated with the componentcomp
- the component to be added
layoutContainer
public void layoutContainer(Container parent)
Lays out the specified container.
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.
parent
- the component to be laid out
- the minimum size computed for the parent.
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
Calculates the preferred size dimensions for the specified
container, given the components it contains.
parent
- the container to be laid out
- the preferred size computed for the parent.
removeLayoutComponent
public void removeLayoutComponent(Component comp)
Removes the specified component from the layout.
comp
- the component to be removed