public class ResizingLayoutManager extends GridLayout
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.LayoutManager
behaves like a GridLayout
with one column and one row.Constructor and Description |
---|
ResizingLayoutManager(ScreenDockWindow window,
Component windowComponent)
Creates a new layout manager
|
Modifier and Type | Method and Description |
---|---|
void |
layoutContainer(Container parent) |
addLayoutComponent, getColumns, getHgap, getRows, getVgap, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setColumns, setHgap, setRows, setVgap, toString
public ResizingLayoutManager(ScreenDockWindow window, Component windowComponent)
window
- the window which is updatedwindowComponent
- the component whose preferred size will be used for window
public void layoutContainer(Container parent)
layoutContainer
in interface LayoutManager
layoutContainer
in class GridLayout