Spec-Zone .ru
спецификации, руководства, описания, API

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

access name type Can Read Can Init Can Write Default Value description
public content Node[] empty

The array of Nodes to be rendered on this Scene.

public cursor Cursor null

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

 
public fill Paint WHITE

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-init height Number

The height of this Scene

public-read stage Stage

The Stage for this Scene

public stylesheets String[]

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

public-init width Number

The width of this Scene

public-read x Number

The horizontal location of this Scene on the Stage.

public-read y Number

The vertical location of this Scene on the Stage.

Inherited Variables

Function Summary

public impl_getPeer() : com.sun.javafx.tk.TKScene

Get Scene's Peer(Implementation)

Get Scene's Peer(Implementation)

Returns
TKScene
 
public impl_inputMethodStateChange() : Void
 
public impl_pick(x: Number, y: Number) : java.util.List
Parameters
x
y
Returns
List
 
public impl_processInputMethodEvent(e: InputMethodEvent) : Void
Parameters
e
 
public impl_processKeyEvent(e: KeyEvent) : Void
Parameters
e
 
public impl_processMouseEvent(e: MouseEvent) : Void
Parameters
e
 
public impl_setStage(s: Stage) : Void
Parameters
s
 
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

 
public renderToImage(platformImage: java.lang.Object) : java.lang.Object

Renders this Scene to the given platform-specific image (e.g.

Renders this Scene to the given platform-specific image (e.g. a BufferedImage in the case of the Swing profile) at a 1:1 scale. If platformImage is null, a new platform-specific image is returned. If the contents of the scene have not changed since the last time this method was called, this method returns null. WARNING: This method is not part of the public API and is subject to change! It is intended for use by the designer tool only.

Parameters
platformImage
Returns
Object
 
public renderToImage(platformImage: java.lang.Object, scale: Number) : java.lang.Object

Renders this Scene to the given platform-specific image (e.g.

Renders this Scene to the given platform-specific image (e.g. a BufferedImage in the case of the Swing profile) using the specified scaling factor. If platformImage is null, a new platform-specific image is returned. If the contents of the scene have not changed since the last time this method was called, this method returns null. WARNING: This method is not part of the public API and is subject to change! It is intended for use by the designer tool only.

Parameters
platformImage
scale
Returns
Object
 

Inherited Functions