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

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

protected class LockedResizeLayoutManager.ResizeLeaf
extends LockedResizeLayoutManager.ResizeElement

Represents a Leaf.

Author:
Benjamin Sigg

Constructor Summary
LockedResizeLayoutManager.ResizeLeaf(LockedResizeLayoutManager.ResizeElement parent, Leaf leaf)
          Creates a new leaf 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.
protected  LockedResizeLayoutManager.ResizeElement[] getChildren()
          Gets the children of this element.
 Leaf getLeaf()
          Gets the leaf which is represented by this leaf-element.
 void prepareResize()
          Called before the bounds of a tree are updated, can be used to store some properties that are later needed to create the LockedResizeLayoutManager.ResizeRequest.
 
Methods inherited from class bibliothek.gui.dock.facile.station.split.LockedResizeLayoutManager.ResizeElement
getParent, getRequest, getResizeRoot, prepareRequests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockedResizeLayoutManager.ResizeLeaf

public LockedResizeLayoutManager.ResizeLeaf(LockedResizeLayoutManager.ResizeElement parent,
                                            Leaf leaf)
Creates a new leaf element.

Parameters:
parent - the parent of this node
leaf - the leaf that is represented by this element
Method Detail

getLeaf

public Leaf getLeaf()
Gets the leaf which is represented by this leaf-element.

Returns:
the origin

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

prepareResize

public void prepareResize()
Description copied from class: LockedResizeLayoutManager.ResizeElement
Called before the bounds of a tree are updated, can be used to store some properties that are later needed to create the LockedResizeLayoutManager.ResizeRequest.

Overrides:
prepareResize in class LockedResizeLayoutManager.ResizeElement

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

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