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

Profile: desktop, common

Overview

The JavaFX Scene class is the root for all content in a scene graph. The background of the scene is filled as specified by the fill variable. The set of Nodes in the content sequence is then rendered on the scene.

Profile: common

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publiccontentNode[]empty

The array of Nodes to be rendered on this Scene.

publiccursorCursornull

Defines the mouse cursor for this Scene.

Defines the mouse cursor for this Scene. If null, then the default system cursor will be used.

null

Profile: common conditional cursor

 
publicfillPaintWHITE

Defines the background fill of this Scene.

Defines the background fill of this Scene. Both a null value meaning paint no background and a javafx.scene.paint.Paint with transparency are supported, but what is painted behind it will depend on the platform. The default value is the color white.

WHITE

Profile: common

 
public-initheightNumber

The height of this Scene

public-readstageStage

The Stage for this Scene

publicstylesheetsString[]

A series string urls linking to the stylesheets to use with this scene's contents.

public-initwidthNumber

The width of this Scene

public-readxNumber

The horizontal location of this Scene on the Stage.

public-readyNumber

The vertical location of this Scene on the Stage.

Inherited Variables

Function Summary

public impl_setHeight(h: Number) : Void
Parameters
h
 
public impl_setStage(s: Stage) : Void
Parameters
s
 
public impl_setWidth(w: Number) : Void
Parameters
w
 
public impl_setX(x: Number) : Void
Parameters
x
 
public impl_setY(y: Number) : Void
Parameters
y
 
public lookup(id: java.lang.String) : Node

Looks for any node within this scene with the specified id.

Looks for any node within this scene with the specified id. If more than one node has the specified id, only the first node found is returned. If no nodes are found with this id, then null is returned.

Parameters
id
the id to look up
Returns
Node
the Node in the scene with the specified id, or null if no node with that id string is found.

Profile: common

 

Inherited Functions




Spec-Zone.ru - all specs in one place