bibliothek.gui.dock.station.screen.window
Class ResizingLayoutManager

java.lang.Object
  extended by java.awt.GridLayout
      extended by 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

Constructor Summary
ResizingLayoutManager(ScreenDockWindow window, Component windowComponent)
          Creates a new layout manager
 
Method Summary
 void layoutContainer(Container parent)
           
 
Methods inherited from class java.awt.GridLayout
addLayoutComponent, getColumns, getHgap, getRows, getVgap, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setColumns, setHgap, setRows, setVgap, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResizingLayoutManager

public ResizingLayoutManager(ScreenDockWindow window,
                             Component windowComponent)
Creates a new layout manager

Parameters:
window - the window which is updated
windowComponent - the component whose preferred size will be used for window
Method Detail

layoutContainer

public void layoutContainer(Container parent)
Specified by:
layoutContainer in interface LayoutManager
Overrides:
layoutContainer in class GridLayout