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

Profile: desktop, common

Overview

Simple layout that stacks the contents on top of each other. For regular nodes this behaves identically to Group; however, for Nodes that implement Resizable this will try to grow the width and height to the size of the Deck, based on the Node's constraints.

Since all Nodes are rendered, this layout is ideally suited to work with shaped or transparent components where the other children would be visible underneath.

Profile: desktop

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicnodeHPosHPosHPos.CENTER

The horizontal position of each node within the Deck's width.

The horizontal position of each node within the Deck's width.

This may be overridden for individual nodes by setting the hpos variable on the node's layoutInfo variable.

HPos.CENTER  
publicnodeVPosVPosVPos.CENTER

The vertical position of each node within the Deck's height.

The vertical position of each node within the Deck's height.

This may be overridden for individual nodes by setting the vpos variable on the node's layoutInfo variable.

VPos.CENTER  

Inherited Variables

org.jfxtras.scene.layout.DefaultLayout

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
public-read protecteddefaultLayoutInfoLayoutInfoBasesubclasssubclass

The default layout info for this Node.

The default layout info for this Node.

Usually this will be initialized by the Node subclass to a static LayoutInfo for all instances. Any values set on this will override the default Constraint values.

 

Inherited Functions