public class ResizeNode<T> extends ResizeElement<T>
Node.| Constructor and Description |
|---|
ResizeNode(LockedResizeLayoutManager<T> layout,
ResizeElement<T> parent,
Node node)
Creates a new node-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.
|
double |
getDividerHeight()
Gets the space that a divider needs in the height.
|
double |
getDividerWidth()
Gets the space that a divider needs in the width.
|
ResizeElement<T> |
getLeft()
Gets the left or top child of this node
|
double |
getNewDividerSize()
Gets the space the divider needs right now.
|
Node |
getNode()
Gets the node that is represented by this element
|
double |
getOldDividerSize()
Gets the space the divider needed before the resize.
|
ResizeElement<T> |
getRight()
Gets the right or bottom child of this node
|
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 ResizeNode(LockedResizeLayoutManager<T> layout, ResizeElement<T> parent, Node node)
layout - the layout that uses this nodeparent - the parent of this nodenode - the node that is represented by this node-elementpublic Node getNode()
public ResizeElement<T> getLeft()
public ResizeElement<T> getRight()
protected ResizeElement<T>[] getChildren()
ResizeElementgetChildren in class ResizeElement<T>nullpublic void prepareResize()
ResizeElementResizeRequest.prepareResize in class ResizeElement<T>public double getDividerWidth()
public double getDividerHeight()
public double getNewDividerSize()
public double getOldDividerSize()
protected 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.