bibliothek.gui.dock.common.intern.station
Class CLockedResizeLayoutManager

java.lang.Object
  extended by bibliothek.gui.dock.facile.station.split.DelegatingSplitLayoutManager
      extended by bibliothek.gui.dock.facile.station.split.LockedResizeLayoutManager<Dimension>
          extended by bibliothek.gui.dock.common.intern.station.CLockedResizeLayoutManager
All Implemented Interfaces:
SplitLayoutManager

public class CLockedResizeLayoutManager
extends LockedResizeLayoutManager<Dimension>

A LockedResizeLayoutManager that looks out for CDockable.isResizeLocked().

Author:
Benjamin Sigg

Nested Class Summary
 
Nested classes/interfaces inherited from class bibliothek.gui.dock.facile.station.split.LockedResizeLayoutManager
LockedResizeLayoutManager.ResizeElement, LockedResizeLayoutManager.ResizeLeaf, LockedResizeLayoutManager.ResizeNode, LockedResizeLayoutManager.ResizeRequest, LockedResizeLayoutManager.ResizeRoot
 
Constructor Summary
CLockedResizeLayoutManager()
          Creates a new layout manager
CLockedResizeLayoutManager(SplitLayoutManager delegate)
          Creates a new layout manager using delegate as delegate for all tasks that have to be carried out.
 
Method Summary
protected  LockedResizeLayoutManager.ResizeRequest getRequest(Dimension size, Leaf leaf)
          Gets the size request that changes the size of leaf such that it has a valid size again.
protected  Dimension prepareResize(Leaf leaf)
          Called before the resize takes place, subclasses might store some properties.
 
Methods inherited from class bibliothek.gui.dock.facile.station.split.LockedResizeLayoutManager
toElement, updateBounds, updateBoundsLocked
 
Methods inherited from class bibliothek.gui.dock.facile.station.split.DelegatingSplitLayoutManager
calculateDivider, install, prepareDrop, prepareMove, uninstall, validateDivider, validatePutInfo, willMakeFullscreen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLockedResizeLayoutManager

public CLockedResizeLayoutManager()
Creates a new layout manager


CLockedResizeLayoutManager

public CLockedResizeLayoutManager(SplitLayoutManager delegate)
Creates a new layout manager using delegate as delegate for all tasks that have to be carried out.

Parameters:
delegate - the delegate used for standard tasks to carry out.
Method Detail

getRequest

protected LockedResizeLayoutManager.ResizeRequest getRequest(Dimension size,
                                                             Leaf leaf)
Description copied from class: LockedResizeLayoutManager
Gets the size request that changes the size of leaf such that it has a valid size again.

Specified by:
getRequest in class LockedResizeLayoutManager<Dimension>
Parameters:
size - the data that was created in LockedResizeLayoutManager.prepareResize(Leaf) or null
leaf - the leaf which size is not yet valid.
Returns:
the preferred size or null

prepareResize

protected Dimension prepareResize(Leaf leaf)
Description copied from class: LockedResizeLayoutManager
Called before the resize takes place, subclasses might store some properties.

Specified by:
prepareResize in class LockedResizeLayoutManager<Dimension>
Parameters:
leaf - some leaf
Returns:
some temporary data that gets forwarded to LockedResizeLayoutManager.getRequest(Object, Leaf), can be null