bibliothek.gui.dock.station.screen.window
Class ResizingLayoutManager
java.lang.Object
java.awt.GridLayout
bibliothek.gui.dock.station.screen.window.ResizingLayoutManager
- All Implemented Interfaces:
- LayoutManager, Serializable
public class ResizingLayoutManager
- extends GridLayout
This LayoutManager changes the size of a ScreenDockWindow such that it has
the same size as its preferred size, this update is only executed if the content of the window
was invalidated.
This LayoutManager behaves like a GridLayout with one column and one row.
- Author:
- Benjamin Sigg
- See Also:
- Serialized Form
| Methods inherited from class java.awt.GridLayout |
addLayoutComponent, getColumns, getHgap, getRows, getVgap, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setColumns, setHgap, setRows, setVgap, toString |
ResizingLayoutManager
public ResizingLayoutManager(ScreenDockWindow window,
Component windowComponent)
- Creates a new layout manager
- Parameters:
window - the window which is updatedwindowComponent - the component whose preferred size will be used for window
layoutContainer
public void layoutContainer(Container parent)
- Specified by:
layoutContainer in interface LayoutManager- Overrides:
layoutContainer in class GridLayout