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, prepareResize
public 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()
ResizeElement
getResizeRoot
in class ResizeElement<T>
public ResizeElement<T> getChild()
null
protected ResizeElement<T>[] getChildren()
ResizeElement
getChildren
in class ResizeElement<T>
null
protected ResizeRequest createRequest()
ResizeElement
createRequest
in class ResizeElement<T>
null
public void adapt(double deltaWidth, double deltaHeight)
ResizeElement
adapt
in class ResizeElement<T>
deltaWidth
- the change of this elements widthdeltaHeight
- the change of this elements height