Class ResizeLeaf<T>
java.lang.Object
bibliothek.gui.dock.facile.station.split.ResizeElement<T>
bibliothek.gui.dock.facile.station.split.ResizeLeaf<T>
Represents a
Leaf.- Author:
- Benjamin Sigg
-
Constructor Summary
ConstructorsConstructorDescriptionResizeLeaf(LockedResizeLayoutManager<T> layout, ResizeElement<T> parent, Leaf leaf) Creates a new leaf 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.protected ResizeElement<T>[]Gets the children of this element.getLeaf()Gets the leaf which is represented by this leaf-element.voidCalled before the bounds of a tree are updated, can be used to store some properties that are later needed to create theResizeRequest.Methods inherited from class bibliothek.gui.dock.facile.station.split.ResizeElement
getLayout, getParent, getRequest, getResizeRoot, isValid, prepareRequests
-
Constructor Details
-
ResizeLeaf
Creates a new leaf element.- Parameters:
layout- the layout manager that uses this leafsparent- the parent of this nodeleaf- the leaf that is represented by this element
-
-
Method Details
-
getLeaf
Gets the leaf which is represented by this leaf-element.- Returns:
- the origin
-
createRequest
Description copied from class:ResizeElementCreates the initial request of changed sizes.- Specified by:
createRequestin classResizeElement<T>- Returns:
- the initial request or
null
-
prepareResize
public void prepareResize()Description copied from class:ResizeElementCalled before the bounds of a tree are updated, can be used to store some properties that are later needed to create theResizeRequest.- Overrides:
prepareResizein classResizeElement<T>
-
getChildren
Description copied from class:ResizeElementGets the children of this element.- Specified by:
getChildrenin classResizeElement<T>- Returns:
- the children 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
-