JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

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

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicheightNumber

The height of the Resizable.

The height of the Resizable. Any javafx.scene.Node subclass which mixes in Resizable should ensure that layoutBounds.height is bound to this value and invokes requestLayout in height's on replace trigger.

Profile: common

 
publicwidthNumber

The width of the Resizable.

The width of the Resizable. Any javafx.scene.Node subclass which mixes in Resizable should ensure that layoutBounds.width is bound to this value and invokes requestLayout in width's on replace trigger.

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 the Resizable's height larger 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 the Resizable's width larger 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 the Node'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 the Node'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 Resizable given the specified width.

Returns the preferred height of the Resizable given the specified width. If a particular width need not be factored into the result, -1 may be passed in as the width parameter. Implementations of this function may also choose to ignore width if it does not impact the result.

Layout containers should set the Resizable's height to 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 Resizable given the specified height.

Returns the preferred width of the Resizable given the specified height. If a particular height need not be factored into the result, -1 may be passed in as the height parameter. Implementations of this function may also choose to ignore height if it does not impact the result.

Layout containers should set the Resizable's width to 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

 

Inherited Functions




Spec-Zone.ru - all specs in one place