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 Node
s 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 |
|||
public | cursor | Cursor | null |
Defines the mouse cursor for this Defines the mouse cursor for this Profile: common conditional cursor |
|||
public | fill | Paint | WHITE |
Defines the background fill of this Defines the background fill of this Profile: common |
|||
public-init | height | Number |
The height of this |
||||
public-read | stage | Stage |
The |
||||
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 |
||||
public-read | x | Number |
The horizontal location of this |
||||
public-read | y | Number |
The vertical location of this |
Inherited Variables
Function Summary
- public impl_setHeight(h: Number) : Void
- public impl_setStage(s: Stage) : Void
- public impl_setWidth(w: Number) : Void
- public impl_setX(x: Number) : Void
- public impl_setY(y: Number) : Void
- 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, ornull
if no node with that id string is found.
Profile: common