bibliothek.extension.gui.dock.station.split
Interface SizeManager

All Known Implementing Classes:
DockFrontendSizeManager

public interface SizeManager

This manager knows the preferred size of some Dockables, compared to the size of their parent node in a SplitDockStation.

Author:
Parag Shah, Benjamin Sigg

Method Summary
 double getSize(Dockable dockable)
          Gets the size that dockable should have compared to the size of its parent Node in a SplitDockStation.
 

Method Detail

getSize

double getSize(Dockable dockable)
Gets the size that dockable should have compared to the size of its parent Node in a SplitDockStation. The result of this method is multiplied with the size of the node in order to get the final size of dockable.

Parameters:
dockable - some element whose size is requested
Returns:
a value between 0 and 1, or below 0 to indicate that no size is available