public class ResizeLeaf<T> extends ResizeElement<T>
Leaf.| Constructor and Description |
|---|
ResizeLeaf(LockedResizeLayoutManager<T> layout,
ResizeElement<T> parent,
Leaf leaf)
Creates a new leaf 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.
|
protected ResizeElement<T>[] |
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
ResizeRequest. |
getLayout, getParent, getRequest, getResizeRoot, isValid, prepareRequestspublic ResizeLeaf(LockedResizeLayoutManager<T> layout, ResizeElement<T> parent, Leaf leaf)
layout - the layout manager that uses this leafsparent - the parent of this nodeleaf - the leaf that is represented by this elementpublic Leaf getLeaf()
protected ResizeRequest createRequest()
ResizeElementcreateRequest in class ResizeElement<T>nullpublic void prepareResize()
ResizeElementResizeRequest.prepareResize in class ResizeElement<T>protected ResizeElement<T>[] getChildren()
ResizeElementgetChildren 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.