Overview
Encapsulates the state required to layout a node which is resizable by its parent container. Layout containers will use this information to layout child nodes, however a node need not be resizable to be laid out.
javafx.scene.Node subclasses should mixin this class whenever they wish to allow their width/height to be set externally (e.g. by Containers).
Profile: common
Variable Summary
| access | name | type | Can Read | Can Init | Can Write | Default Value | description |
|---|---|---|---|---|---|---|---|
| public | height | Number | ![]() | ![]() | ![]() |
The height of the
The height of the Profile: common |
|
| public | width | Number | ![]() | ![]() | ![]() |
The width of the
The width of the Profile: common |
Inherited Variables
Function Summary
- public getMaxHeight() : Number
-
Returns the maximum height of the
Resizable.
Returns the maximum height of the
Resizable. Layout containers should strive not to set theResizable'sheightlarger than this value. This value is computed by the node subclass using applicable state and variable settings and is not directly settable by applications.-
Returns
- Number
Profile: common
- public getMaxWidth() : Number
-
Returns the preferred height of the
Resizable.
Returns the preferred height of the
Resizable. Layout containers should strive not to set theResizable'swidthlarger than this value. This value is computed by the node subclass using applicable state and variable settings and is not directly settable by applications.-
Returns
- Number
Profile: common
- public getMinHeight() : Number
-
Returns the minimum height of the
Resizable.
Returns the minimum height of the
Resizable. Layout containers should strive not to set theNode's height smaller than this value. This value is computed by the node subclass using applicable state and variable settings and is not directly settable by applications.-
Returns
- Number
Profile: common
- public getMinWidth() : Number
-
Returns the minimum width of the
Resizable.
Returns the minimum width of the
Resizable. Layout containers should strive not to set theNode's width smaller than this value. This value is calculated by the node subclass using applicable state and variable settings and is not directly settable by applications.-
Returns
- Number
Profile: common
- public abstract getPrefHeight(width: Number) : Number
-
Returns the preferred height of the
Resizablegiven the specified width.
Returns the preferred height of the
Resizablegiven the specified width. If a particular width need not be factored into the result, -1 may be passed in as thewidthparameter. Implementations of this function may also choose to ignorewidthif it does not impact the result.Layout containers should set the
Resizable'sheightto this value whenever possible. This value is computed by the node subclass using applicable state and variable settings and is not directly settable by applications.-
Parameters
- width
-
Returns
- Number
Profile: common
- public abstract getPrefWidth(height: Number) : Number
-
Returns the preferred width of the
Resizablegiven the specified height.
Returns the preferred width of the
Resizablegiven the specified height. If a particular height need not be factored into the result, -1 may be passed in as theheightparameter. Implementations of this function may also choose to ignoreheightif it does not impact the result.Layout containers should set the
Resizable'swidthto this value whenever possible. This value is computed by the node subclass using applicable state and variable settings and is not directly settable by applications.-
Parameters
- height
-
Returns
- Number
Profile: common
