bibliothek.extension.gui.dock.station.split
Class LbSplitLayoutManager

java.lang.Object
  extended by bibliothek.gui.dock.station.split.DefaultSplitLayoutManager
      extended by bibliothek.extension.gui.dock.station.split.LbSplitLayoutManager
All Implemented Interfaces:
SplitLayoutManager

public class LbSplitLayoutManager
extends DefaultSplitLayoutManager

This SplitLayoutManager uses a SizeManager to find the size a Dockable should get when dropping onto the SplitDockStation.

Author:
Parag Shah, Benjamin Sigg

Constructor Summary
LbSplitLayoutManager(SizeManager sizeManager)
          Creates a new manager.
 
Method Summary
 void calculateDivider(SplitDockStation station, PutInfo putInfo, Leaf origin)
          Calculates the value a divider should have if the Dockable of putInfo is added alongside of origin.
 
Methods inherited from class bibliothek.gui.dock.station.split.DefaultSplitLayoutManager
calculateSideSnap, install, prepareDrop, prepareMove, uninstall, updateBounds, validateDivider, validateDivider, validatePutInfo, willMakeFullscreen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LbSplitLayoutManager

public LbSplitLayoutManager(SizeManager sizeManager)
Creates a new manager.

Parameters:
sizeManager - information about the size of new Dockables
Method Detail

calculateDivider

public void calculateDivider(SplitDockStation station,
                             PutInfo putInfo,
                             Leaf origin)
Description copied from interface: SplitLayoutManager
Calculates the value a divider should have if the Dockable of putInfo is added alongside of origin. The result has to be stored directly in putInfo.

Specified by:
calculateDivider in interface SplitLayoutManager
Overrides:
calculateDivider in class DefaultSplitLayoutManager
Parameters:
station - the station for which the calculation has to be done
putInfo - the new child of the station
origin - a leaf of this station or null