Class ResizeRoot<T>
java.lang.Object
bibliothek.gui.dock.facile.station.split.ResizeElement<T>
bibliothek.gui.dock.facile.station.split.ResizeRoot<T>
- Type Parameters:
T- the kind of meta-data clients use
Represents a
Root.- Author:
- Benjamin Sigg
-
Constructor Summary
ConstructorsConstructorDescriptionResizeRoot(LockedResizeLayoutManager<T> layout, Root root) Creates a new root-element -
Method Summary
Modifier and TypeMethodDescriptionvoidadapt(double deltaWidth, double deltaHeight) Adapts the size of the children of this element given the size change the parent could provide.protected ResizeRequestCreates the initial request of changed sizes.getChild()Gets the one child of this rootprotected ResizeElement<T>[]Gets the children of this element.Gets the root of this tree.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, isValid, prepareRequests, prepareResize
-
Constructor Details
-
ResizeRoot
Creates a new root-element- Parameters:
layout- the layout that uses this rootroot- the root which is represented by this root-element
-
-
Method Details
-
getRoot
Gets the root which is represented by this root-element.- Returns:
- the root
-
getResizeRoot
Description copied from class:ResizeElementGets the root of this tree.- Overrides:
getResizeRootin classResizeElement<T>- Returns:
- the root
-
getChild
Gets the one child of this root- Returns:
- the child or
null
-
getChildren
Description copied from class:ResizeElementGets the children of this element.- Specified by:
getChildrenin classResizeElement<T>- Returns:
- the children or
null
-
createRequest
Description copied from class:ResizeElementCreates the initial request of changed sizes.- Specified by:
createRequestin classResizeElement<T>- Returns:
- the initial request or
null
-
adapt
public void adapt(double deltaWidth, double deltaHeight) Description copied from class:ResizeElementAdapts the size of the children of this element given the size change the parent could provide.- Specified by:
adaptin classResizeElement<T>- Parameters:
deltaWidth- the change of this elements widthdeltaHeight- the change of this elements height
-