bibliothek.gui.dock.facile.station.split
Class ResizeRoot<T>

java.lang.Object
  extended by bibliothek.gui.dock.facile.station.split.ResizeElement<T>
      extended by bibliothek.gui.dock.facile.station.split.ResizeRoot<T>
Type Parameters:
T - the kind of meta-data clients use

public class ResizeRoot<T>
extends ResizeElement<T>

Represents a Root.

Author:
Benjamin Sigg

Constructor Summary
ResizeRoot(LockedResizeLayoutManager<T> layout, 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  ResizeRequest createRequest()
          Creates the initial request of changed sizes.
 ResizeElement<T> getChild()
          Gets the one child of this root
protected  ResizeElement<T>[] getChildren()
          Gets the children of this element.
 ResizeRoot<T> 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.ResizeElement
getLayout, getParent, getRequest, prepareRequests, prepareResize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizeRoot

public ResizeRoot(LockedResizeLayoutManager<T> layout,
                  Root root)
Creates a new root-element

Parameters:
layout - the layout that uses this root
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 ResizeRoot<T> getResizeRoot()
Description copied from class: ResizeElement
Gets the root of this tree.

Overrides:
getResizeRoot in class ResizeElement<T>
Returns:
the root

getChild

public ResizeElement<T> getChild()
Gets the one child of this root

Returns:
the child or null

getChildren

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

Specified by:
getChildren in class ResizeElement<T>
Returns:
the children or null

createRequest

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

Specified by:
createRequest in class ResizeElement<T>
Returns:
the initial request or null

adapt

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

Specified by:
adapt in class ResizeElement<T>
Parameters:
deltaWidth - the change of this elements width
deltaHeight - the change of this elements height