package scene
- Alphabetic
- By Inheritance
- scene
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- sealed abstract class AccessibleAction extends SFXEnumDelegate[javafx.scene.AccessibleAction]
- sealed abstract class AccessibleRole extends SFXEnumDelegate[javafx.scene.AccessibleRole]
-
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 abstract class CacheHint extends SFXEnumDelegate[javafx.scene.CacheHint]
- abstract class Camera extends Node with SFXDelegate[javafx.scene.Camera]
- abstract class Cursor extends SFXDelegate[javafx.scene.Cursor]
- sealed abstract class DepthTest extends SFXEnumDelegate[javafx.scene.DepthTest]
-
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.sceneClasses/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 abstract class SceneAntialiasing extends SFXDelegate[javafx.scene.SceneAntialiasing]
-
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.sceneand 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
SpotLight extends LightBase with SFXDelegate[javafx.scene.SpotLight]
A
SpotLightis aPointLightthat radiates light in a cone in a specific direction.A
SpotLightis aPointLightthat radiates light in a cone in a specific direction. The direction is defined by the directionProperty() direction vector property of the light. The direction can be rotated by setting a rotation transform on theSpotLight. For example, if the direction vector is(1, 1, 1)and the light is not rotated, it will point in the(1, 1, 1)direction, and if the light is rotated 90 degrees on the y axis, it will point in the(1, 1, -1)direction.In addition to the factors that control the light intensity of a
PointLight, aSpotLighthas a light-cone attenuation factor,spot, that is determined by 3 properties:- innerAngleProperty innerAngle: the angle of the inner cone (see image below)
- outerAngleProperty outerAngle: the angle of the outer cone (see image below)
- falloffProperty falloff: the factor that controls the light's intensity drop inside the outer cone
The valid ranges for these properties are
0 <= innerAngle <= outerAngle <= 180andfalloff >= 0; values outside either of these ranges can produce unexpected results.The angle of a point to the light is defined as the angle between its vector to the light's position and the direction of the light. For such an angle
theta, iftheta < innerAnglethenspot = 1theta > outerAnglethenspot = 0innerAngle <= theta <= outerAnglethen
spot = pow((cos(theta) - cos(outer)) / (cos(inner) - cos(outer)), falloff)
which represents a drop in intensity from the inner angle to the outer angle.
As a result,
0 <= spot <= 1. The overall intensity of the light isI = lambert * atten * spot.
- Since
17
- See also
PhongMaterial
-
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]
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
AccessibleRoledictates 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]
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]
Wrapper for javafx.scene.CacheHint
- object Camera
- object Cursor
-
object
DepthTest extends SFXEnumDelegateCompanion[javafx.scene.DepthTest, DepthTest]
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
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 SpotLight
- 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.animationcorresponds tojavafx.animation.Example Usage
A basic ScalaFX application is created creating an object that is an instance of
JFXApp3. Following Java FX theatre metaphor, it contains astagethat contains ascene. Astageroughly corresponds to a window in a typical UI environment. Thesceneholds UI content presented to the user. In the example below, the content is a pane with a singlelabelcomponent.