T - the kind of meta-data clients usepublic class ResizeRoot<T> extends ResizeElement<T>
Root.| Constructor and Description |
|---|
ResizeRoot(LockedResizeLayoutManager<T> layout,
Root root)
Creates a new root-element
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getLayout, getParent, getRequest, isValid, prepareRequests, prepareResizepublic ResizeRoot(LockedResizeLayoutManager<T> layout, Root root)
layout - the layout that uses this rootroot - the root which is represented by this root-elementpublic Root getRoot()
public ResizeRoot<T> getResizeRoot()
ResizeElementgetResizeRoot in class ResizeElement<T>public ResizeElement<T> getChild()
nullprotected ResizeElement<T>[] getChildren()
ResizeElementgetChildren in class ResizeElement<T>nullprotected ResizeRequest createRequest()
ResizeElementcreateRequest in class ResizeElement<T>nullpublic void adapt(double deltaWidth,
double deltaHeight)
ResizeElementadapt in class ResizeElement<T>deltaWidth - the change of this elements widthdeltaHeight - the change of this elements heightCopyright © 2018. All rights reserved.