Package org.graffiti.util
Class MaximizeLayout
java.lang.Object
org.graffiti.util.MaximizeLayout
- All Implemented Interfaces:
LayoutManager
public class MaximizeLayout extends Object implements LayoutManager
Layour wrapper that modifies the behaviour of a
LayoutManager
for maximized
JInternalFrame
s. If the frame is maximized, its title bar
is hidden. This is intended to be used together with
MaximizeManager
.- Version:
- $Revision: 1.4 $ $Date: 2010/12/22 13:05:53 $
- Author:
- Michael Forster
- See Also:
MaximizeManager
,MaximizeFrame
-
Constructor Summary
Constructors Constructor Description MaximizeLayout(LayoutManager originalLayout)
Wrap an existing layout and overide its behaviour for maximized frames. -
Method Summary
Modifier and Type Method Description void
addLayoutComponent(String name, Component comp)
void
layoutContainer(Container parent)
Dimension
minimumLayoutSize(Container parent)
Dimension
preferredLayoutSize(Container parent)
void
removeLayoutComponent(Component comp)
-
Constructor Details
-
MaximizeLayout
Wrap an existing layout and overide its behaviour for maximized frames.- Parameters:
originalLayout
- The wrapped layout.
-
-
Method Details
-
addLayoutComponent
- Specified by:
addLayoutComponent
in interfaceLayoutManager
-
layoutContainer
- Specified by:
layoutContainer
in interfaceLayoutManager
-
minimumLayoutSize
- Specified by:
minimumLayoutSize
in interfaceLayoutManager
-
preferredLayoutSize
- Specified by:
preferredLayoutSize
in interfaceLayoutManager
-
removeLayoutComponent
- Specified by:
removeLayoutComponent
in interfaceLayoutManager
-