bibliothek.extension.gui.dock.station.split
Class LbSplitLayoutManager
java.lang.Object
bibliothek.gui.dock.station.split.DefaultSplitLayoutManager
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LbSplitLayoutManager
public LbSplitLayoutManager(SizeManager sizeManager)
- Creates a new manager.
- Parameters:
sizeManager - information about the size of new Dockables
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 doneputInfo - the new child of the stationorigin - a leaf of this station or null