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

Profile: desktop, common

Overview

JFXtras extension of Container that provides versions of all the static helper functions that respect ExtendedLayoutInfo.grow and DefaultLayout.

Inherited Variables

Script Function Summary

public getManaged(content: javafx.scene.Node[]) : java.lang.Object[]

Utility function which returns the sequence of nodes within the content whose layout should be managed by its container.

Utility function which returns the sequence of nodes within the content whose layout should be managed by its container.

Parameters
content
Returns
Object[]
 
public getNodeFill(node: javafx.scene.Node) : org.jfxtras.scene.layout.Fill

Utility function which returns the preferred width of the Node.

Utility function which returns the preferred width of the Node.

Parameters
node
Returns
Fill
 
public getNodeHGrow(node: javafx.scene.Node) : org.jfxtras.scene.layout.Grow

Utility function which returns the vertical Grow of the Node.

Utility function which returns the vertical Grow of the Node.

Parameters
node
Returns
Grow
 
public getNodeHPos(node: javafx.scene.Node) : javafx.geometry.HPos

Utility function which returns the horizontal layout position of the Node which defines how the node should be horizontally aligned within its layout space if the width of the layout space is greater than the layout bounds width of the node.

Utility function which returns the horizontal layout position of the Node which defines how the node should be horizontally aligned within its layout space if the width of the layout space is greater than the layout bounds width of the node.

This version has no user default and will rely on class defaults instead.

Parameters
node
Returns
HPos
 
public getNodeHPos(node: javafx.scene.Node, fallback: javafx.geometry.HPos) : javafx.geometry.HPos

Utility function which returns the horizontal layout position of the Node which defines how the node should be horizontally aligned within its layout space if the width of the layout space is greater than the layout bounds width of the node.

Utility function which returns the horizontal layout position of the Node which defines how the node should be horizontally aligned within its layout space if the width of the layout space is greater than the layout bounds width of the node.

Parameters
node
fallback
Returns
HPos
 
public getNodeHSpan(node: javafx.scene.Node) : Integer

Utility function which returns the horizontal span of the Node.

Utility function which returns the horizontal span of the Node.

Parameters
node
Returns
Integer
 
public getNodeMaxHeight(node: javafx.scene.Node) : Number

Utility function which returns the maximum height of the Node.

Utility function which returns the maximum height of the Node.

Parameters
node
Returns
Number
 
public getNodeMaxWidth(node: javafx.scene.Node) : Number

Utility function which returns the maximum width of the Node.

Utility function which returns the maximum width of the Node.

Parameters
node
Returns
Number
 
public getNodeMinHeight(node: javafx.scene.Node) : Number

Utility function which returns the minimum height of the Node.

Utility function which returns the minimum height of the Node.

Parameters
node
Returns
Number
 
public getNodeMinWidth(node: javafx.scene.Node) : Number

Utility function which returns the minimum width of the Node.

Utility function which returns the minimum width of the Node.

Parameters
node
Returns
Number
 
public getNodePrefHeight(node: javafx.scene.Node) : Number

Utility function which returns the preferred height of the Node.

Utility function which returns the preferred height of the Node.

Parameters
node
Returns
Number
 
public getNodePrefHeight(node: javafx.scene.Node, width: Number) : Number

Utility function which returns the preferred height of the Node for the given width.

Utility function which returns the preferred height of the Node for the given width.

Parameters
node
width
Returns
Number
 
public getNodePrefWidth(node: javafx.scene.Node) : Number

Utility function which returns the preferred width of the Node.

Utility function which returns the preferred width of the Node.

Parameters
node
Returns
Number
 
public getNodePrefWidth(node: javafx.scene.Node, height: Number) : Number

Utility function which returns the preferred width of the Node for the given height.

Utility function which returns the preferred width of the Node for the given height.

Parameters
node
height
Returns
Number
 
public getNodeVGrow(node: javafx.scene.Node) : org.jfxtras.scene.layout.Grow

Utility function which returns the horizontal Grow of the Node.

Utility function which returns the horizontal Grow of the Node.

Parameters
node
Returns
Grow
 
public getNodeVPos(node: javafx.scene.Node) : javafx.geometry.VPos

Utility function which returns the vertical layout position of the Node which defines how the node should be vertically aligned within its layout space if the height of the layout space is greater than the layout bounds height of the node.

Utility function which returns the vertical layout position of the Node which defines how the node should be vertically aligned within its layout space if the height of the layout space is greater than the layout bounds height of the node.

This version has no user default and will rely on class defaults instead.

Parameters
node
Returns
VPos
 
public getNodeVPos(node: javafx.scene.Node, fallback: javafx.geometry.VPos) : javafx.geometry.VPos

Utility function which returns the vertical layout position of the Node which defines how the node should be vertically aligned within its layout space if the height of the layout space is greater than the layout bounds height of the node.

Utility function which returns the vertical layout position of the Node which defines how the node should be vertically aligned within its layout space if the height of the layout space is greater than the layout bounds height of the node.

Parameters
node
fallback
Returns
VPos
 
public getNodeVSpan(node: javafx.scene.Node) : Integer

Utility function which returns the vertical span of the Node.

Utility function which returns the vertical span of the Node.

Parameters
node
Returns
Integer
 
public layoutNode(node: javafx.scene.Node, areaX: Number, areaY: Number, areaW: Number, areaH: Number, hposIn: javafx.geometry.HPos, vposIn: javafx.geometry.VPos) : Boolean

Utility function which Lays out the node relative to the specified layout area defined by areaX, areaY, areaW x areaH.

Utility function which Lays out the node relative to the specified layout area defined by areaX, areaY, areaW x areaH.

This differs from Container.layoutNode, because it also takes into account ExtendedLayoutInfo.fill, and will attempt to constrain the node to fit the bounding box.

Parameters
node
areaX
areaY
areaW
areaH
hposIn
vposIn
Returns
Boolean
 
public managed(node: javafx.scene.Node) : Boolean

Utility function which returns the value of the node's layoutInfo managed variable (if set), otherwise returns true.

Utility function which returns the value of the node's layoutInfo managed variable (if set), otherwise returns true.

Parameters
node
Returns
Boolean
 

Inherited Functions