package scene
- Alphabetic
- By Inheritance
- scene
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- sealed case class AccessibleAction (delegate: javafx.scene.AccessibleAction) extends SFXEnumDelegate[javafx.scene.AccessibleAction] with Product with Serializable
- sealed case class AccessibleRole (delegate: javafx.scene.AccessibleRole) extends SFXEnumDelegate[javafx.scene.AccessibleRole] with Product with Serializable
-
class
AmbientLight
extends LightBase with SFXDelegate[javafx.scene.AmbientLight]
Defines an ambient light source object.
Defines an ambient light source object. Ambient light is a light source that seems to come from all directions.
- sealed case class CacheHint (delegate: javafx.scene.CacheHint) extends SFXEnumDelegate[javafx.scene.CacheHint] with Product with Serializable
- abstract class Camera extends Node with SFXDelegate[javafx.scene.Camera]
- abstract class Cursor extends SFXDelegate[javafx.scene.Cursor]
- sealed case class DepthTest (delegate: javafx.scene.DepthTest) extends SFXEnumDelegate[javafx.scene.DepthTest] with Product with Serializable
-
class
Group
extends Parent with SFXDelegate[javafx.scene.Group]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/Group.html.
- class ImageCursor extends Cursor with SFXDelegate[javafx.scene.ImageCursor]
-
abstract
class
LightBase
extends Node with SFXDelegate[javafx.scene.LightBase]
The LightBase class provides definitions of common properties for objects that represent a form of Light source.
-
trait
LowerPriorityIncludes
extends AnyRef
Contains implicit methods to convert from
javafx.scene
Classes/Traits to their ScalaFX counterparts. -
abstract
class
Node
extends EventHandlerDelegate with Styleable with SFXDelegate[javafx.scene.Node]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/Node.html.
- class ParallelCamera extends Camera with SFXDelegate[javafx.scene.ParallelCamera]
-
abstract
class
Parent
extends Node with SFXDelegate[javafx.scene.Parent]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/Parent.html.
- class PerspectiveCamera extends Camera with SFXDelegate[javafx.scene.PerspectiveCamera]
-
class
PointLight
extends LightBase with SFXDelegate[javafx.scene.PointLight]
Defines a point light source object.
Defines a point light source object. An attenuated light source that has a fixed point in space and radiates light equally in all directions away from itself.
-
class
Scene
extends SFXDelegate[javafx.scene.Scene]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/Scene.html.
- sealed case class SceneAntialiasing (delegate: javafx.scene.SceneAntialiasing) extends SFXDelegate[javafx.scene.SceneAntialiasing] with Product with Serializable
-
trait
SceneIncludes
extends ChartIncludes with LayoutIncludes with PaintIncludes with ShapeIncludes with TextIncludes with ImageIncludes with EffectIncludes with LowerPriorityIncludes with ControlIncludes
Contains implicit methods to convert from
javafx.scene
and subpackages Classes/Traits to their ScalaFX counterparts. -
class
SnapshotParameters
extends SFXDelegate[javafx.scene.SnapshotParameters]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/SnapshotParameters.html
-
class
SnapshotResult
extends SFXDelegate[javafx.scene.SnapshotResult]
Wraps JavaFX's
SnapshotResult
.Wraps JavaFX's
SnapshotResult
. How the original Java class does not have public constructors, it is not possible instantiate in Scala.- Since
2.2
-
class
SubScene
extends Node with SFXDelegate[javafx.scene.SubScene]
Wraps http://docs.oracle.com/javafx/8/api/javafx/scene/SubScene.html.
-
class
SceneProperty
extends ReadOnlyObjectProperty[javafx.scene.Scene] with SFXDelegate[ReadOnlyObjectProperty[javafx.scene.Scene]]
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use of SceneProperty can result in infinite recursion and StackOverflow errors. See discussion of [Issue #69](https://github.com/scalafx/scalafx/issues/69)
Value Members
-
object
AccessibleAction
extends SFXEnumDelegateCompanion[javafx.scene.AccessibleAction, AccessibleAction] with Serializable
This enum describes the actions that an assistive technology such as a screen reader can request from the scene graph.
This enum describes the actions that an assistive technology such as a screen reader can request from the scene graph.
The
AccessibleRole
dictates the set of actions that the screen reader will request for a particular control. For example, a push button normally fires an event to indicate that it was pressed in response to the FIRE action.An action may have any number of parameters, depending on the particular action.
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/AccessibleAction.html
-
object
AccessibleRole
extends SFXEnumDelegateCompanion[javafx.scene.AccessibleRole, AccessibleRole] with Serializable
This enum describes the accessible role for a
Node
.This enum describes the accessible role for a
Node
.The role is used by assistive technologies such as screen readers to decide the set of actions and attributes for a node. For example, when the screen reader needs the current value of a slider, it will request it using the value attribute. When the screen reader changes the value of the slider, it will use an action to set the current value of the slider. The slider must respond appropriately to both these requests.
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/AccessibleRole.html
- object AmbientLight
-
object
CacheHint
extends SFXEnumDelegateCompanion[javafx.scene.CacheHint, CacheHint] with Serializable
Wrapper for javafx.scene.CacheHint
- object Camera
- object Cursor
-
object
DepthTest
extends SFXEnumDelegateCompanion[javafx.scene.DepthTest, DepthTest] with Serializable
Wrapper for javafx.scene.DepthTest
- object Group
- object ImageCursor
- object LightBase
-
object
Node
Companion object for scalafx.scene.Node.
- object ParallelCamera
- object Parent
- object PerspectiveCamera
- object PointLight
- object Scene
-
object
SceneAntialiasing
extends Serializable
Specifies the level of antialiasing desired when rendering 3D primitives.
Specifies the level of antialiasing desired when rendering 3D primitives.
- Note
In order for scene antialiasing to have an affect, the underlying system must support: ConditionalFeature.SCENE3D and anti-aliasing.
- object SceneIncludes extends SceneIncludes
- object SnapshotParameters
- object SnapshotResult
- object SubScene
Deprecated Value Members
-
object
SceneProperty
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use of SceneProperty can result in infinite recursion and StackOverflow errors. See discussion of [Issue #69](https://github.com/scalafx/scalafx/issues/69)
ScalaFX is a UI DSL written within the Scala Language that sits on top of JavaFX 2.x and and JavaFX 8. This means that every ScalaFX application is also a valid Scala application. By extension it supports full interoperability with Java and can run anywhere the Java Virtual Machine (JVM) and JavaFX 2.0 or JavaFX 8 are supported.
Package Structure
ScalaFX package structure corresponds to JavaFX package structure, for instance
scalafx.animation
corresponds tojavafx.animation
.Example Usage
A basic ScalaFX application is created creating an object that is an instance of
JFXApp
. Following Java FX theatre metaphor, it contains astage
that contains ascene
. Astage
roughly corresponds to a window in a typical UI environment. Thescene
holds UI content presented to the user. In the example below, the content is a pane with a singlelabel
component.