scalafx.scene

Scene

Related Docs: object Scene | package scene

class Scene extends SFXDelegate[javafx.scene.Scene]

Wraps http://docs.oracle.com/javafx/2/api/javafx/scene/Scene.html.

Source
Scene.scala
Linear Supertypes
SFXDelegate[javafx.scene.Scene], AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Scene
  2. SFXDelegate
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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(parent: Parent, width: Double, height: Double, depthBuffer: Boolean)

    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

  4. 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

  5. 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

  6. 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

  7. 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def camera: ObjectProperty[javafx.scene.Camera]

    Specifies the type of camera use for rendering this Scene.

  8. def camera_=(v: Camera): Unit

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def content: ObservableList[javafx.scene.Node]

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

  11. 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.

  12. 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.

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

    Defines the mouse cursor for this Scene.

  14. def cursor_=(v: Cursor): Unit

  15. val delegate: javafx.scene.Scene

    JavaFX Scene delegated.

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

    Definition Classes
    SceneSFXDelegate
  16. def depthBuffer: Boolean

    Retrieves the depth buffer attribute for this scene.

  17. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. 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
  19. def eventDispatcher: ObjectProperty[EventDispatcher]

    Specifies the event dispatcher for this scene.

  20. def eventDispatcher_=(v: EventDispatcher): Unit

  21. def fill: ObjectProperty[Paint]

    Defines the background fill of this Scene.

  22. def fill_=(v: Paint): Unit

  23. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. 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

  25. def getChildren: ObservableList[javafx.scene.Node]

    Returns Nodes children from this Scene's root.

  26. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  27. def getMnemonics: ObservableMap[KeyCombination, ObservableList[Mnemonic]]

    Gets the list of mnemonics for this Scene.

  28. def hashCode(): Int

    returns

    The delegate hashcode

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

    The height of this Scene

  30. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  31. 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.

  32. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  35. def onContextMenuRequested: ObjectProperty[EventHandler[_ >: ContextMenuEvent]]

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

  36. def onContextMenuRequested_=(v: EventHandler[_ >: ContextMenuEvent]): Unit

  37. def onDragDetected: ObjectProperty[EventHandler[_ >: MouseEvent]]

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

  38. def onDragDetected_=(v: EventHandler[_ >: MouseEvent]): Unit

  39. 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.

  40. def onDragDone_=(v: EventHandler[_ >: DragEvent]): Unit

  41. 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.

  42. def onDragDropped_=(v: EventHandler[_ >: DragEvent]): Unit

  43. def onDragEntered: ObjectProperty[EventHandler[_ >: DragEvent]]

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

  44. def onDragEntered_=(v: EventHandler[_ >: DragEvent]): Unit

  45. def onDragExited: ObjectProperty[EventHandler[_ >: DragEvent]]

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

  46. def onDragExited_=(v: EventHandler[_ >: DragEvent]): Unit

  47. def onDragOver: ObjectProperty[EventHandler[_ >: DragEvent]]

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

  48. def onDragOver_=(v: EventHandler[_ >: DragEvent]): Unit

  49. def onInputMethodTextChanged: ObjectProperty[EventHandler[_ >: InputMethodEvent]]

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

  50. def onInputMethodTextChanged_=(v: EventHandler[_ >: InputMethodEvent]): Unit

  51. 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.

  52. def onKeyPressed_=(v: EventHandler[_ >: KeyEvent]): Unit

  53. 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.

  54. def onKeyReleased_=(v: EventHandler[_ >: KeyEvent]): Unit

  55. 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.

  56. def onKeyTyped_=(v: EventHandler[_ >: KeyEvent]): Unit

  57. def onMouseClicked: ObjectProperty[EventHandler[_ >: MouseEvent]]

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

  58. def onMouseClicked_=(v: EventHandler[_ >: MouseEvent]): Unit

  59. def onMouseDragEntered: ObjectProperty[EventHandler[_ >: MouseDragEvent]]

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

  60. def onMouseDragEntered_=(v: EventHandler[_ >: MouseEvent]): Unit

  61. def onMouseDragExited: ObjectProperty[EventHandler[_ >: MouseDragEvent]]

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

  62. def onMouseDragExited_=(v: EventHandler[_ >: MouseEvent]): Unit

  63. def onMouseDragOver: ObjectProperty[EventHandler[_ >: MouseDragEvent]]

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

  64. def onMouseDragOver_=(v: EventHandler[_ >: MouseEvent]): Unit

  65. def onMouseDragReleased: ObjectProperty[EventHandler[_ >: MouseDragEvent]]

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

  66. def onMouseDragReleased_=(v: EventHandler[_ >: MouseEvent]): Unit

  67. def onMouseDragged: ObjectProperty[EventHandler[_ >: MouseEvent]]

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

  68. def onMouseDragged_=(v: EventHandler[_ >: MouseEvent]): Unit

  69. def onMouseEntered: ObjectProperty[EventHandler[_ >: MouseEvent]]

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

  70. def onMouseEntered_=(v: EventHandler[_ >: MouseEvent]): Unit

  71. def onMouseExited: ObjectProperty[EventHandler[_ >: MouseEvent]]

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

  72. def onMouseExited_=(v: EventHandler[_ >: MouseEvent]): Unit

  73. def onMouseMoved: ObjectProperty[EventHandler[_ >: MouseEvent]]

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

  74. def onMouseMoved_=(v: EventHandler[_ >: MouseEvent]): Unit

  75. def onMousePressed: ObjectProperty[EventHandler[_ >: MouseEvent]]

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

  76. def onMousePressed_=(v: EventHandler[_ >: MouseEvent]): Unit

  77. def onMouseReleased: ObjectProperty[EventHandler[_ >: MouseEvent]]

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

  78. def onMouseReleased_=(v: EventHandler[_ >: MouseEvent]): Unit

  79. 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

  80. def onRotate_=(v: EventHandler[RotateEvent]): Unit

  81. 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

  82. def onRotationFinished_=(v: EventHandler[RotateEvent]): Unit

  83. 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

  84. def onRotationStarted_=(v: EventHandler[RotateEvent]): Unit

  85. def onScroll: ObjectProperty[EventHandler[_ >: ScrollEvent]]

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

  86. 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

  87. def onScrollFinished_=(v: EventHandler[ScrollEvent]): Unit

  88. 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

  89. def onScrollStarted_=(v: EventHandler[ScrollEvent]): Unit

  90. def onScroll_=(v: EventHandler[_ >: ScrollEvent]): Unit

  91. 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

  92. def onSwipeDown_=(v: EventHandler[SwipeEvent]): Unit

  93. 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

  94. def onSwipeLeft_=(v: EventHandler[SwipeEvent]): Unit

  95. 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

  96. def onSwipeRight_=(v: EventHandler[SwipeEvent]): Unit

  97. 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

  98. def onSwipeUp_=(v: EventHandler[SwipeEvent]): Unit

  99. 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

  100. def onTouchMoved_=(v: EventHandler[TouchEvent]): Unit

  101. 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

  102. def onTouchPressed_=(v: EventHandler[TouchEvent]): Unit

  103. 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

  104. def onTouchReleased_=(v: EventHandler[TouchEvent]): Unit

  105. 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

  106. def onTouchStationary_=(v: EventHandler[TouchEvent]): Unit

  107. 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

  108. 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

  109. def onZoomFinished_=(v: EventHandler[ZoomEvent]): Unit

  110. 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

  111. def onZoomStarted_=(v: EventHandler[ZoomEvent]): Unit

  112. def onZoom_=(v: EventHandler[ZoomEvent]): Unit

  113. def removeMnemonic(m: Mnemonic): Unit

    Unregisters the specified mnemonic.

    Unregisters the specified mnemonic.

    m

    The Mnemonic to be removed.

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

    Returns the root Node of the scene graph

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

    Sets the root Node of the scene graph

  116. 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

  117. 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

  118. 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

  119. def startFullDrag(): Unit

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

  120. def stylesheets: ObservableList[String]

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

  121. 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.

  122. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  123. def toString(): String

    returns

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

    Definition Classes
    SFXDelegate → AnyRef → Any
  124. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  125. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  126. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  127. def width: ReadOnlyDoubleProperty

    The width of this Scene

  128. def window: ReadOnlyObjectProperty[Window]

    The Window for this Scene

  129. def x: ReadOnlyDoubleProperty

    The horizontal location of this Scene on the Window.

  130. def y: ReadOnlyDoubleProperty

    The vertical location of this Scene on the Window.

Inherited from SFXDelegate[javafx.scene.Scene]

Inherited from AnyRef

Inherited from Any

Ungrouped