Packages

class Scene extends SFXDelegate[javafx.scene.Scene]

Source
Scene.scala
Linear Supertypes
SFXDelegate[javafx.scene.Scene], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Scene
  2. SFXDelegate
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Scene(parent: Parent, fill: Paint)

    Creates a Scene for a specific root Node with a fill.

    Creates a Scene for a specific root Node with a fill.

    parent

    The root node of the scene graph

    fill

    The fill

  2. new Scene(parent: Parent, width: Double, height: Double, fill: Paint)

    Creates a Scene for a specific root Node with a specific size and fill.

    Creates a Scene for a specific root Node with a specific size and fill.

    parent

    The root node of the scene graph

    width

    The width of the scene

    height

    The height of the scene

    fill

    The fill

  3. new Scene(width: Double, height: Double, depthBuffer: Boolean, antiAliasing: SceneAntialiasing)

    Creates a Scene with a Group as parent, with a dimension of width and height, specifies whether a depth buffer is created for this scene and specifies the required scene anti-aliasing.

    Creates a Scene with a Group as parent, with a dimension of width and height, specifies whether a depth buffer is created for this scene and specifies the required scene anti-aliasing.

    width

    The width of the scene

    height

    The height of the scene

    depthBuffer

    The depth buffer flag

    antiAliasing

    The required scene anti-aliasing.

  4. new Scene(parent: Parent, width: Double, height: Double, depthBuffer: Boolean, antiAliasing: SceneAntialiasing)

    Constructs a scene consisting of a root, with a dimension of width and height, specifies whether a depth buffer is created for this scene and specifies the required scene anti-aliasing.

    Constructs a scene consisting of a root, with a dimension of width and height, specifies whether a depth buffer is created for this scene and specifies the required scene anti-aliasing.

    parent

    The root node of the scene graph

    width

    The width of the scene

    height

    The height of the scene

    depthBuffer

    The depth buffer flag

    antiAliasing

    The required scene anti-aliasing.

  5. new Scene(width: Double, height: Double, depthBuffer: Boolean)

    Creates a Scene with a Group as parent, with a dimension of width and height, and specifies whether a depth buffer is created for this scene.

    Creates a Scene with a Group as parent, with a dimension of width and height, and specifies whether a depth buffer is created for this scene.

    width

    The width of the scene

    height

    The height of the scene

    depthBuffer

    The depth buffer flag

  6. new Scene(parent: Parent, width: Double, height: Double, depthBuffer: Boolean)

    Constructs a scene consisting of a root, with a dimension of width and height, and specifies whether a depth buffer is created for this scene.

    Constructs a scene consisting of a root, with a dimension of width and height, and specifies whether a depth buffer is created for this scene.

    parent

    The root node of the scene graph

    width

    The width of the scene

    height

    The height of the scene

    depthBuffer

    The depth buffer flag

  7. new Scene(parent: Parent, width: Double, height: Double)

    Creates a Scene for a specific root Node with a specific size.

    Creates a Scene for a specific root Node with a specific size.

    parent

    The root node of the scene graph

    width

    The width of the scene

    height

    The height of the scene

  8. new Scene(parent: Parent)

    Creates a Scene for a specific root Node.

    Creates a Scene for a specific root Node.

    parent

    The root node of the scene graph

  9. new Scene(width: Double, height: Double)

    Creates a Scene with a Group as root Node with a specific size.

    Creates a Scene with a Group as root Node with a specific size.

    width

    The width of the scene

    height

    The height of the scene

  10. new Scene(delegate: javafx.scene.Scene = new jfxs.Scene(new jfxs.Group()))

    Create a new ScalaFX Scene with JavaFX Scene as delegate.

    Create a new ScalaFX Scene with JavaFX Scene as delegate.

    delegate

    JavaFX Scene delegated. Its default value is a JavaFX Scene with a Group as root Node.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def accelerators: ObservableMap[KeyCombination, Runnable]

    Gets the list of accelerators for this Scene.

  5. def addMnemonic(m: Mnemonic): Unit

    Registers the specified mnemonic.

    Registers the specified mnemonic.

    m

    The Mnemonic

  6. def antialiasing: SceneAntialiasing

    Returns scene's antialiasing setting.

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def camera: ObjectProperty[javafx.scene.Camera]

    Specifies the type of camera use for rendering this Scene.

  9. def camera_=(v: Camera): Unit
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  11. def content: ObservableList[javafx.scene.Node]

    Returns Content's Node children from this Scene's root.

  12. def content_=(n: Node): Unit

    Sets a Node child, replacing the prior content.

    Sets a Node child, replacing the prior content. If you want append to current content, use add or similar.

    n

    Node child to replace prior content.

  13. def content_=(c: Iterable[Node]): Unit

    Sets the list of Nodes children from this Scene's root, replacing the prior content.

    Sets the list of Nodes children from this Scene's root, replacing the prior content. If you want append to current content, use add or similar.

    c

    list of Nodes children from this Scene's root to replace prior content.

  14. def cursor: ObjectProperty[javafx.scene.Cursor]

    Defines the mouse cursor for this Scene.

  15. def cursor_=(v: Cursor): Unit
  16. val delegate: javafx.scene.Scene

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

    Definition Classes
    SceneSFXDelegate
  17. def depthBuffer: Boolean

    Retrieves the depth buffer attribute for this scene.

  18. def effectiveNodeOrientation: ReadOnlyObjectProperty[NodeOrientation]

    The effective node orientation of a scene resolves the inheritance of node orientation, returning either left-to-right or right-to-left.

  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def equals(ref: Any): Boolean

    Verifies if a object is equals to this delegate.

    Verifies if a object is equals to this delegate.

    ref

    Object to be compared.

    returns

    if the other object is equals to this delegate or not.

    Definition Classes
    SFXDelegate → AnyRef → Any
  21. def eventDispatcher: ObjectProperty[EventDispatcher]

    Specifies the event dispatcher for this scene.

  22. def eventDispatcher_=(v: EventDispatcher): Unit
  23. def fill: ObjectProperty[Paint]

    Defines the background fill of this Scene.

  24. def fill_=(v: Paint): Unit
  25. def focusOwner: ReadOnlyObjectProperty[javafx.scene.Node]

    The scene's current focus owner node.

    The scene's current focus owner node. This node's "focused" variable might be false if this scene has no window, or if the window is inactive (window.focused == false).

    Since

    2.2

  26. def getChildren: ObservableBuffer[javafx.scene.Node]

    Returns Nodes children from this Scene's root.

  27. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  28. def getMnemonics: ObservableMap[KeyCombination, ObservableList[Mnemonic]]

    Gets the list of mnemonics for this Scene.

  29. def hashCode(): Int

    returns

    The delegate hashcode

    Definition Classes
    SFXDelegate → AnyRef → Any
  30. def height: ReadOnlyDoubleProperty

    The height of this Scene

  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. def lookup(selector: String): Option[Node]

    Looks for any node within the scene graph based on the specified CSS selector.

    Looks for any node within the scene graph based on the specified CSS selector.

    selector

    The css selector to look up

    returns

    A scala.Some containing the Node in the scene which matches the CSS selector, or scala.None if none is found.

  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. def nodeOrientation: ObjectProperty[NodeOrientation]
  35. def nodeOrientation_=(v: NodeOrientation): Unit
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  38. def onContextMenuRequested: ObjectProperty[EventHandler[_ >: ContextMenuEvent]]

    Defines a function to be called when a mouse button has been clicked (pressed and released) on this Scene.

  39. def onContextMenuRequested_=(v: EventHandler[_ >: ContextMenuEvent]): Unit
  40. def onDragDetected: ObjectProperty[EventHandler[_ >: MouseEvent]]

    Defines a function to be called when drag gesture has been detected.

  41. def onDragDetected_=(v: EventHandler[_ >: MouseEvent]): Unit
  42. def onDragDone: ObjectProperty[EventHandler[_ >: DragEvent]]

    Defines a function to be called when this Scene is a drag and drop gesture source after its data has been dropped on a drop target.

  43. def onDragDone_=(v: EventHandler[_ >: DragEvent]): Unit
  44. def onDragDropped: ObjectProperty[EventHandler[_ >: DragEvent]]

    Defines a function to be called when the mouse button is released on this Scene during drag and drop gesture.

  45. def onDragDropped_=(v: EventHandler[_ >: DragEvent]): Unit
  46. def onDragEntered: ObjectProperty[EventHandler[_ >: DragEvent]]

    Defines a function to be called when drag gesture enters this Scene.

  47. def onDragEntered_=(v: EventHandler[_ >: DragEvent]): Unit
  48. def onDragExited: ObjectProperty[EventHandler[_ >: DragEvent]]

    Defines a function to be called when drag gesture exits this Scene.

  49. def onDragExited_=(v: EventHandler[_ >: DragEvent]): Unit
  50. def onDragOver: ObjectProperty[EventHandler[_ >: DragEvent]]

    Defines a function to be called when drag gesture progresses within this Scene.

  51. def onDragOver_=(v: EventHandler[_ >: DragEvent]): Unit
  52. def onInputMethodTextChanged: ObjectProperty[EventHandler[_ >: InputMethodEvent]]

    Defines a function to be called when this Node has input focus and the input method text has changed.

  53. def onInputMethodTextChanged_=(v: EventHandler[_ >: InputMethodEvent]): Unit
  54. def onKeyPressed: ObjectProperty[EventHandler[_ >: KeyEvent]]

    Defines a function to be called when some Node of this Scene has input focus and a key has been pressed.

  55. def onKeyPressed_=(v: EventHandler[_ >: KeyEvent]): Unit
  56. def onKeyReleased: ObjectProperty[EventHandler[_ >: KeyEvent]]

    Defines a function to be called when some Node of this Scene has input focus and a key has been released.

  57. def onKeyReleased_=(v: EventHandler[_ >: KeyEvent]): Unit
  58. def onKeyTyped: ObjectProperty[EventHandler[_ >: KeyEvent]]

    Defines a function to be called when some Node of this Scene has input focus and a key has been typed.

  59. def onKeyTyped_=(v: EventHandler[_ >: KeyEvent]): Unit
  60. def onMouseClicked: ObjectProperty[EventHandler[_ >: MouseEvent]]

    Defines a function to be called when a mouse button has been clicked (pressed and released) on this Scene.

  61. def onMouseClicked_=(v: EventHandler[_ >: MouseEvent]): Unit
  62. def onMouseDragEntered: ObjectProperty[EventHandler[_ >: MouseDragEvent]]

    Defines a function to be called when a full press-drag-release gesture enters this Scene.

  63. def onMouseDragEntered_=(v: EventHandler[_ >: MouseDragEvent]): Unit
  64. def onMouseDragExited: ObjectProperty[EventHandler[_ >: MouseDragEvent]]

    Defines a function to be called when a full press-drag-release gesture exits this Scene.

  65. def onMouseDragExited_=(v: EventHandler[_ >: MouseDragEvent]): Unit
  66. def onMouseDragOver: ObjectProperty[EventHandler[_ >: MouseDragEvent]]

    Defines a function to be called when a full press-drag-release gesture progresses within this Scene.

  67. def onMouseDragOver_=(v: EventHandler[_ >: MouseDragEvent]): Unit
  68. def onMouseDragReleased: ObjectProperty[EventHandler[_ >: MouseDragEvent]]

    Defines a function to be called when a full press-drag-release gesture ends within this Scene.

  69. def onMouseDragReleased_=(v: EventHandler[_ >: MouseDragEvent]): Unit
  70. def onMouseDragged: ObjectProperty[EventHandler[_ >: MouseEvent]]

    Defines a function to be called when a mouse button is pressed on this Scene and then dragged.

  71. def onMouseDragged_=(v: EventHandler[_ >: MouseEvent]): Unit
  72. def onMouseEntered: ObjectProperty[EventHandler[_ >: MouseEvent]]

    Defines a function to be called when the mouse enters this Scene.

  73. def onMouseEntered_=(v: EventHandler[_ >: MouseEvent]): Unit
  74. def onMouseExited: ObjectProperty[EventHandler[_ >: MouseEvent]]

    Defines a function to be called when the mouse exits this Scene.

  75. def onMouseExited_=(v: EventHandler[_ >: MouseEvent]): Unit
  76. def onMouseMoved: ObjectProperty[EventHandler[_ >: MouseEvent]]

    Defines a function to be called when mouse cursor moves within this Scene but no buttons have been pushed.

  77. def onMouseMoved_=(v: EventHandler[_ >: MouseEvent]): Unit
  78. def onMousePressed: ObjectProperty[EventHandler[_ >: MouseEvent]]

    Defines a function to be called when a mouse button has been pressed on this Scene.

  79. def onMousePressed_=(v: EventHandler[_ >: MouseEvent]): Unit
  80. def onMouseReleased: ObjectProperty[EventHandler[_ >: MouseEvent]]

    Defines a function to be called when a mouse button has been released on this Scene.

  81. def onMouseReleased_=(v: EventHandler[_ >: MouseEvent]): Unit
  82. def onRotate: ObjectProperty[EventHandler[_ >: RotateEvent]]

    Defines a function to be called when user performs a rotation action.

    Defines a function to be called when user performs a rotation action.

    Since

    2.2

  83. def onRotate_=(v: EventHandler[_ >: RotateEvent]): Unit
  84. def onRotationFinished: ObjectProperty[EventHandler[_ >: RotateEvent]]

    Defines a function to be called when a rotation gesture ends.

    Defines a function to be called when a rotation gesture ends.

    Since

    2.2

  85. def onRotationFinished_=(v: EventHandler[_ >: RotateEvent]): Unit
  86. def onRotationStarted: ObjectProperty[EventHandler[_ >: RotateEvent]]

    Defines a function to be called when a rotation gesture starts.

    Defines a function to be called when a rotation gesture starts.

    Since

    2.2

  87. def onRotationStarted_=(v: EventHandler[_ >: RotateEvent]): Unit
  88. def onScroll: ObjectProperty[EventHandler[_ >: ScrollEvent]]

    Defines a function to be called when user performs a scrolling action.

  89. def onScrollFinished: ObjectProperty[EventHandler[_ >: ScrollEvent]]

    Defines a function to be called when a Scroll gesture ends.

    Defines a function to be called when a Scroll gesture ends.

    Since

    2.2

  90. def onScrollFinished_=(v: EventHandler[_ >: ScrollEvent]): Unit
  91. def onScrollStarted: ObjectProperty[EventHandler[_ >: ScrollEvent]]

    Defines a function to be called when a Scroll gesture starts.

    Defines a function to be called when a Scroll gesture starts.

    Since

    2.2

  92. def onScrollStarted_=(v: EventHandler[_ >: ScrollEvent]): Unit
  93. def onScroll_=(v: EventHandler[_ >: ScrollEvent]): Unit
  94. def onSwipeDown: ObjectProperty[EventHandler[_ >: SwipeEvent]]

    Defines a function to be called when a Swipe Down gesture starts.

    Defines a function to be called when a Swipe Down gesture starts.

    Since

    2.2

  95. def onSwipeDown_=(v: EventHandler[_ >: SwipeEvent]): Unit
  96. def onSwipeLeft: ObjectProperty[EventHandler[_ >: SwipeEvent]]

    Defines a function to be called when a Swipe Down gesture starts.

    Defines a function to be called when a Swipe Down gesture starts.

    Since

    2.2

  97. def onSwipeLeft_=(v: EventHandler[_ >: SwipeEvent]): Unit
  98. def onSwipeRight: ObjectProperty[EventHandler[_ >: SwipeEvent]]

    Defines a function to be called when a Swipe Right gesture starts.

    Defines a function to be called when a Swipe Right gesture starts.

    Since

    2.2

  99. def onSwipeRight_=(v: EventHandler[_ >: SwipeEvent]): Unit
  100. def onSwipeUp: ObjectProperty[EventHandler[_ >: SwipeEvent]]

    Defines a function to be called when a Swipe Up gesture starts.

    Defines a function to be called when a Swipe Up gesture starts.

    Since

    2.2

  101. def onSwipeUp_=(v: EventHandler[_ >: SwipeEvent]): Unit
  102. def onTouchMoved: ObjectProperty[EventHandler[_ >: TouchEvent]]

    Defines a function to be called when user performs a Touch Moved action.

    Defines a function to be called when user performs a Touch Moved action.

    Since

    2.2

  103. def onTouchMoved_=(v: EventHandler[_ >: TouchEvent]): Unit
  104. def onTouchPressed: ObjectProperty[EventHandler[_ >: TouchEvent]]

    Defines a function to be called when user performs a Touch Pressed action.

    Defines a function to be called when user performs a Touch Pressed action.

    Since

    2.2

  105. def onTouchPressed_=(v: EventHandler[_ >: TouchEvent]): Unit
  106. def onTouchReleased: ObjectProperty[EventHandler[_ >: TouchEvent]]

    Defines a function to be called when user performs a Touch Released action.

    Defines a function to be called when user performs a Touch Released action.

    Since

    2.2

  107. def onTouchReleased_=(v: EventHandler[_ >: TouchEvent]): Unit
  108. def onTouchStationary: ObjectProperty[EventHandler[_ >: TouchEvent]]

    Defines a function to be called when user performs a Touch Stationary action.

    Defines a function to be called when user performs a Touch Stationary action.

    Since

    2.2

  109. def onTouchStationary_=(v: EventHandler[_ >: TouchEvent]): Unit
  110. def onZoom: ObjectProperty[EventHandler[_ >: ZoomEvent]]

    Defines a function to be called when user performs a Touch action.

    Defines a function to be called when user performs a Touch action.

    Since

    2.2

  111. def onZoomFinished: ObjectProperty[EventHandler[_ >: ZoomEvent]]

    Defines a function to be called when a Zoom gesture ends.

    Defines a function to be called when a Zoom gesture ends.

    Since

    2.2

  112. def onZoomFinished_=(v: EventHandler[_ >: ZoomEvent]): Unit
  113. def onZoomStarted: ObjectProperty[EventHandler[_ >: ZoomEvent]]

    Defines a function to be called when a Zoom gesture starts.

    Defines a function to be called when a Zoom gesture starts.

    Since

    2.2

  114. def onZoomStarted_=(v: EventHandler[_ >: ZoomEvent]): Unit
  115. def onZoom_=(v: EventHandler[_ >: ZoomEvent]): Unit
  116. def removeMnemonic(m: Mnemonic): Unit

    Unregisters the specified mnemonic.

    Unregisters the specified mnemonic.

    m

    The Mnemonic to be removed.

  117. def root: ObjectProperty[javafx.scene.Parent]

    Returns the root Node of the scene graph

  118. def root_=(v: Parent): Unit

    Sets the root Node of the scene graph

  119. def snapshot(callback: (SnapshotResult) => Unit, image: WritableImage): Unit

    Takes a snapshot of this scene at the next frame and calls the specified callback method when the image is ready.

    Takes a snapshot of this scene at the next frame and calls the specified callback method when the image is ready.

    callback

    A function to be called when the image is ready.

    image

    The writable image that will be used to hold the rendered scene.

    Since

    2.2

  120. def snapshot(image: WritableImage): WritableImage

    Takes a snapshot of this scene and returns the rendered image when it is ready.

    Takes a snapshot of this scene and returns the rendered image when it is ready.

    image

    The writable image that will be used to hold the rendered scene.

    returns

    the rendered image

    Since

    2.2

  121. def startDragAndDrop(transferModes: TransferMode*): Dragboard

    Confirms a potential drag and drop gesture that is recognized over this Scene.

    Confirms a potential drag and drop gesture that is recognized over this Scene.

    transferModes

    The supported TransferMode(s) of this Node

    returns

    A Dragboard to place this Scene's data on

  122. def startFullDrag(): Unit

    Starts a full press-drag-release gesture with this scene as gesture source.

  123. def stylesheets: ObservableList[String]

    Gets an observable list of string URLs linking to the stylesheets to use with this Parent's contents.

  124. def stylesheets_=(c: Iterable[String]): Unit

    Sets the list of stylesheets URLs, replacing the prior content.

    Sets the list of stylesheets URLs, replacing the prior content. If you want append to current content, use add or similar.

    c

    list of stylesheets URLs to replace prior content.

  125. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  126. def toString(): String

    returns

    Returns the original delegate's toString() adding a [SFX] prefix.

    Definition Classes
    SFXDelegate → AnyRef → Any
  127. def userAgentStylesheet: ObjectProperty[String]

    The URL of the user-agent stylesheet that will be used by this Scene in place of the the platform-default user-agent stylesheet.

    The URL of the user-agent stylesheet that will be used by this Scene in place of the the platform-default user-agent stylesheet. If the URL does not resolve to a valid location, the platform-default user-agent stylesheet will be used.

    For additional information about using CSS with the scene graph, see the CSS Reference Guide.

    returns

    The URL of the user-agent stylesheet that will be used by this SubScene, or null if has not been set.

  128. def userAgentStylesheet_=(url: String): Unit

    Set the URL of the user-agent stylesheet that will be used by this Scene in place of the the platform-default user-agent stylesheet.

    Set the URL of the user-agent stylesheet that will be used by this Scene in place of the the platform-default user-agent stylesheet. If the URL does not resolve to a valid location, the platform-default user-agent stylesheet will be used.

    For additional information about using CSS with the scene graph, see the CSS Reference Guide.

    url

    The URL is a hierarchical URI of the form [scheme:][//authority][path]. If the URL does not have a [scheme:] component, the URL is considered to be the [path] component only. Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to the root of the application's classpath.

  129. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  130. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  131. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  132. def width: ReadOnlyDoubleProperty

    The width of this Scene

  133. def window: ReadOnlyObjectProperty[Window]

    The Window for this Scene

  134. def x: ReadOnlyDoubleProperty

    The horizontal location of this Scene on the Window.

  135. def y: ReadOnlyDoubleProperty

    The vertical location of this Scene on the Window.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from SFXDelegate[javafx.scene.Scene]

Inherited from AnyRef

Inherited from Any

Ungrouped