bibliothek.gui.dock.station.split
Interface SplitDockAccess


public interface SplitDockAccess

Provides access to some internal methods and attributes of a SplitDockStation. An access is granted only to a few selected friend classes.

Author:
Benjamin Sigg

Method Summary
 void add(DockableDisplayer displayer)
          Adds a displayer to the list of all known displayers.
 Leaf createLeaf(Dockable dockable)
          Adds dockable to the list of children, generates a title and a Leaf for dockable, but does not add the leaf to this station.
 DockableDisplayer getFullScreenDockable()
          Gets the DockableDisplayer which is currently in fullscreen-mode.
 SplitDockStation getOwner()
          Gets the station to which this object grants access.
 double validateDivider(double divider, Node node)
          Tests whether the given value of the divider is a legal value or not.
 

Method Detail

getOwner

SplitDockStation getOwner()
Gets the station to which this object grants access.

Returns:
the owner

getFullScreenDockable

DockableDisplayer getFullScreenDockable()
Gets the DockableDisplayer which is currently in fullscreen-mode.

Returns:
the displayer, may be null

validateDivider

double validateDivider(double divider,
                       Node node)
Tests whether the given value of the divider is a legal value or not.

Parameters:
divider - The value of the divider
node - the node for which the divider is validated
Returns:
a legal value, as near as possible to divider.

add

void add(DockableDisplayer displayer)
Adds a displayer to the list of all known displayers.

Parameters:
displayer - the new displayer

createLeaf

Leaf createLeaf(Dockable dockable)
Adds dockable to the list of children, generates a title and a Leaf for dockable, but does not add the leaf to this station. The location of the leaf has be set by the caller.

Parameters:
dockable - the new child of this station.
Returns:
the Leaf for dockable