bibliothek.gui.dock.facile.station.split
Class LockedResizeLayoutManager.ResizeRoot

java.lang.Object
  extended by bibliothek.gui.dock.facile.station.split.LockedResizeLayoutManager.ResizeElement
      extended by bibliothek.gui.dock.facile.station.split.LockedResizeLayoutManager.ResizeRoot
Enclosing class:
LockedResizeLayoutManager<T>

protected class LockedResizeLayoutManager.ResizeRoot
extends LockedResizeLayoutManager.ResizeElement

Represents a Root.

Author:
Benjamin Sigg

Constructor Summary
LockedResizeLayoutManager.ResizeRoot(Root root)
          Creates a new root-element
 
Method Summary
 void adapt(double deltaWidth, double deltaHeight)
          Adapts the size of the children of this element given the size change the parent could provide.
protected  LockedResizeLayoutManager.ResizeRequest createRequest()
          Creates the initial request of changed sizes.
 LockedResizeLayoutManager.ResizeElement getChild()
          Gets the one child of this root
protected  LockedResizeLayoutManager.ResizeElement[] getChildren()
          Gets the children of this element.
 LockedResizeLayoutManager.ResizeRoot getResizeRoot()
          Gets the root of this tree.
 Root getRoot()
          Gets the root which is represented by this root-element.
 
Methods inherited from class bibliothek.gui.dock.facile.station.split.LockedResizeLayoutManager.ResizeElement
getParent, getRequest, prepareRequests, prepareResize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockedResizeLayoutManager.ResizeRoot

public LockedResizeLayoutManager.ResizeRoot(Root root)
Creates a new root-element

Parameters:
root - the root which is represented by this root-element
Method Detail

getRoot

public Root getRoot()
Gets the root which is represented by this root-element.

Returns:
the root

getResizeRoot

public LockedResizeLayoutManager.ResizeRoot getResizeRoot()
Description copied from class: LockedResizeLayoutManager.ResizeElement
Gets the root of this tree.

Overrides:
getResizeRoot in class LockedResizeLayoutManager.ResizeElement
Returns:
the root

getChild

public LockedResizeLayoutManager.ResizeElement getChild()
Gets the one child of this root

Returns:
the child or null

getChildren

protected LockedResizeLayoutManager.ResizeElement[] getChildren()
Description copied from class: LockedResizeLayoutManager.ResizeElement
Gets the children of this element.

Specified by:
getChildren in class LockedResizeLayoutManager.ResizeElement
Returns:
the children or null

createRequest

protected LockedResizeLayoutManager.ResizeRequest createRequest()
Description copied from class: LockedResizeLayoutManager.ResizeElement
Creates the initial request of changed sizes.

Specified by:
createRequest in class LockedResizeLayoutManager.ResizeElement
Returns:
the initial request or null

adapt

public void adapt(double deltaWidth,
                  double deltaHeight)
Description copied from class: LockedResizeLayoutManager.ResizeElement
Adapts the size of the children of this element given the size change the parent could provide.

Specified by:
adapt in class LockedResizeLayoutManager.ResizeElement
Parameters:
deltaWidth - the change of this elements width
deltaHeight - the change of this elements height