scalafx.scene

package scalafx.scene

Wraps `javafx.scene` package.

Attributes

Members list

Packages

Wraps `javafx.scene.canvas` package.

Wraps `javafx.scene.canvas` package.

Attributes

Wraps `javafx.scene.chart` package.

Wraps `javafx.scene.chart` package.

Attributes

Wraps `javafx.scene.control` package.

Wraps `javafx.scene.control` package.

Attributes

Wraps `javafx.scene.effect` package.

Wraps `javafx.scene.effect` package.

Attributes

Wraps `javafx.scene.image` package.

Wraps `javafx.scene.image` package.

Attributes

Wraps `javafx.scene.input` package.

Wraps `javafx.scene.input` package.

Attributes

Wraps `javafx.scene.layout` package.

Wraps `javafx.scene.layout` package.

Attributes

Wraps `javafx.scene.media` package.

Wraps `javafx.scene.media` package.

Attributes

Wraps `javafx.scene.paint` package.

Wraps `javafx.scene.paint` package.

Attributes

Wraps `javafx.scene.shape` package.

Wraps `javafx.scene.shape` package.

Attributes

Wraps `javafx.scene.text` package.

Wraps `javafx.scene.text` package.

Attributes

Wraps `javafx.scene.transform` package.

Wraps `javafx.scene.transform` package.

Attributes

Wraps `javafx.scene.web` package.

Wraps `javafx.scene.web` package.

Attributes

Type members

Classlikes

object AccessibleAction extends SFXEnumDelegateCompanion[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 [[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

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
trait SFXEnumDelegateCompanion[AccessibleAction, AccessibleAction]
class Object
trait Matchable
class Any
Show all
Self type
sealed abstract class AccessibleAction(val delegate: AccessibleAction) extends SFXEnumDelegate[AccessibleAction]

Attributes

Companion
object
Supertypes
trait SFXEnumDelegate[AccessibleAction]
trait SFXDelegate[AccessibleAction]
class Object
trait Matchable
class Any
Known subtypes
object BlockDecrement.type
object BlockIncrement.type
object Collapse.type
object Decrement.type
object Expand.type
object Fire.type
object Increment.type
object RequestFocus.type
object SetSelectedItems.type
object SetText.type
object SetTextSelection.type
object SetValue.type
object ShowItem.type
object ShowMenu.type
object ShowTextRange.type
Show all
object AccessibleRole extends SFXEnumDelegateCompanion[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

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
trait SFXEnumDelegateCompanion[AccessibleRole, AccessibleRole]
class Object
trait Matchable
class Any
Show all
Self type
sealed abstract class AccessibleRole(val delegate: AccessibleRole) extends SFXEnumDelegate[AccessibleRole]

Attributes

Companion
object
Supertypes
trait SFXEnumDelegate[AccessibleRole]
trait SFXDelegate[AccessibleRole]
class Object
trait Matchable
class Any
Known subtypes
object Button.type
object CheckBox.type
object CheckBoxTreeItem.type
object CheckMenuItem.type
object ComboBox.type
object ContextMenu.type
object DatePicker.type
object DecrementButton.type
object Dialog.type
object Hyperlink.type
object ImageView.type
object IncrementButton.type
object ListItem.type
object ListView.type
object Menu.type
object MenuBar.type
object MenuButton.type
object MenuItem.type
object Node.type
object PageItem.type
object Pagination.type
object Parent.type
object PasswordField.type
object ProgressIndicator.type
object RadioButton.type
object RadioMenuItem.type
object ScrollBar.type
object ScrollPane.type
object Slider.type
object Spinner.type
object SplitMenuButton.type
object TabItem.type
object TabPane.type
object TableCell.type
object TableColumn.type
object TableRow.type
object TableView.type
object Text.type
object TextArea.type
object TextField.type
object Thumb.type
object TitledPane.type
object ToggleButton.type
object ToolBar.type
object Tooltip.type
object TreeItem.type
object TreeTableCell.type
object TreeTableRow.type
object TreeTableView.type
object TreeView.type
Show all
object AmbientLight

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class AmbientLight(val delegate: AmbientLight) extends LightBase, SFXDelegate[AmbientLight]

Defines an ambient light source object. Ambient light is a light source that seems to come from all directions.

Defines an ambient light source object. Ambient light is a light source that seems to come from all directions.

Attributes

Companion
object
Supertypes
class LightBase
class Node
trait Styleable
class EventTarget
trait SFXDelegate[AmbientLight]
class Object
trait Matchable
class Any
Show all
object CacheHint extends SFXEnumDelegateCompanion[CacheHint, CacheHint]

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
CacheHint.type
sealed abstract class CacheHint(val delegate: CacheHint) extends SFXEnumDelegate[CacheHint]

Attributes

Companion
object
Supertypes
trait SFXEnumDelegate[CacheHint]
trait SFXDelegate[CacheHint]
class Object
trait Matchable
class Any
Known subtypes
object Default.type
object Quality.type
object Rotate.type
object Scale.type
object ScaleAndRotate.type
object Speed.type
Show all
object Camera

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Camera.type
abstract class Camera(val delegate: Camera) extends Node, SFXDelegate[Camera]

Attributes

Companion
object
Supertypes
class Node
trait Styleable
class EventTarget
trait SFXDelegate[Camera]
class Object
trait Matchable
class Any
Show all
Known subtypes
object Cursor

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Cursor.type
abstract class Cursor(val delegate: Cursor) extends SFXDelegate[Cursor]

Attributes

Companion
object
Supertypes
trait SFXDelegate[Cursor]
class Object
trait Matchable
class Any
Known subtypes
class ImageCursor
object DepthTest extends SFXEnumDelegateCompanion[DepthTest, DepthTest]

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
DepthTest.type
sealed abstract class DepthTest(val delegate: DepthTest) extends SFXEnumDelegate[DepthTest]

Attributes

Companion
object
Supertypes
trait SFXEnumDelegate[DepthTest]
trait SFXDelegate[DepthTest]
class Object
trait Matchable
class Any
Known subtypes
object Disabled.type
object Enable.type
object Inherit.type
object Group

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Group.type
class Group(val delegate: Group) extends Parent, SFXDelegate[Group]

Attributes

Companion
object
Supertypes
class Parent
class Node
trait Styleable
class EventTarget
trait SFXDelegate[Group]
class Object
trait Matchable
class Any
Show all
object ImageCursor

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class ImageCursor(val delegate: ImageCursor) extends Cursor, SFXDelegate[ImageCursor]

Attributes

Companion
object
Supertypes
class Cursor
trait SFXDelegate[ImageCursor]
class Object
trait Matchable
class Any
object LightBase

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
LightBase.type
abstract class LightBase(val delegate: LightBase) extends Node, SFXDelegate[LightBase]

The LightBase class provides definitions of common properties for objects that represent a form of Light source.

The LightBase class provides definitions of common properties for objects that represent a form of Light source.

Attributes

Companion
object
Supertypes
class Node
trait Styleable
class EventTarget
trait SFXDelegate[LightBase]
class Object
trait Matchable
class Any
Show all
Known subtypes
class AmbientLight
class PointLight
class SpotLight

Contains implicit methods to convert from `javafx.scene` Classes/Traits to their ScalaFX counterparts.

Contains implicit methods to convert from `javafx.scene` Classes/Traits to their ScalaFX counterparts.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object SceneIncludes.type
trait Includes
object Includes.type
object Node

Companion object for scalafx.scene.Node.

Companion object for scalafx.scene.Node.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Node.type
abstract class Node extends EventTarget, Styleable, SFXDelegate[Node]

Value parameters

delegate

JavaFX Node

Attributes

Constructor

creates a new ScalaFX Node from a JavaFX Node.

Companion
object
Supertypes
trait Styleable
class EventTarget
trait SFXDelegate[Node]
class Object
trait Matchable
class Any
Show all
Known subtypes
class SwingNode
class Canvas
class ImageView
class MediaView
class Shape
class Arc
class Circle
class CubicCurve
class Ellipse
class Line
class Path
class Polygon
class Polyline
class QuadCurve
class Rectangle
class SVGPath
class Text
class Shape3D
class Box
class Cylinder
class MeshView
class Sphere
class Camera
class LightBase
class AmbientLight
class PointLight
class SpotLight
class Parent
class Region
class Axis[T]
class CategoryAxis
class ValueAxis[T]
class NumberAxis
class Chart
class PieChart
class XYChart[X, Y]
class AreaChart[X, Y]
class BarChart[X, Y]
class BubbleChart[X, Y]
class LineChart[X, Y]
class ScatterChart[X, Y]
class StackedAreaChart[X, Y]
class StackedBarChart[X, Y]
class Control
class Accordion
class ButtonBar
class ChoiceBox[J]
class ComboBoxBase[T]
class ColorPicker
class ComboBox[T]
class DatePicker
class Labeled
class ButtonBase
class Button
class CheckBox
class Hyperlink
class MenuButton
class ToggleButton
class RadioButton
class Cell[T]
class DateCell
class IndexedCell[T]
class ListCell[T]
class CheckBoxListCell[T]
class ComboBoxListCell[T]
class TableCell[S, T]
class CheckBoxTableCell[S, T]
class ChoiceBoxTableCell[S, T]
class ComboBoxTableCell[S, T]
class TextFieldTableCell[S, T]
class TableRow[T]
class TreeCell[T]
class CheckBoxTreeCell[T]
class ComboBoxTreeCell[T]
class TreeTableCell[S, T]
class CheckBoxTreeTableCell[S, T]
class ComboBoxTreeTableCell[S, T]
class TreeTableRow[T]
class Label
class TitledPane
class ListView[T]
class MenuBar
class Pagination
class ProgressBar
class ScrollBar
class ScrollPane
class Separator
class Slider
class Spinner[T]
class SplitPane
class TabPane
class TableView[S]
class TextArea
class TextField
class ToolBar
class TreeTableView[S]
class TreeView[T]
class HTMLEditor
class Pane
class DialogPane
class AnchorPane
class BorderPane
class FlowPane
class GridPane
class HBox
class StackPane
class TilePane
class VBox
class TextFlow
class WebView
class Group
class SubScene
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class ParallelCamera(val delegate: ParallelCamera) extends Camera, SFXDelegate[ParallelCamera]

Attributes

Companion
object
Supertypes
class Camera
class Node
trait Styleable
class EventTarget
trait SFXDelegate[ParallelCamera]
class Object
trait Matchable
class Any
Show all
object Parent

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Parent.type
abstract class Parent(val delegate: Parent) extends Node, SFXDelegate[Parent]

Attributes

Companion
object
Supertypes
class Node
trait Styleable
class EventTarget
trait SFXDelegate[Parent]
class Object
trait Matchable
class Any
Show all
Known subtypes
class Region
class Axis[T]
class CategoryAxis
class ValueAxis[T]
class NumberAxis
class Chart
class PieChart
class XYChart[X, Y]
class AreaChart[X, Y]
class BarChart[X, Y]
class BubbleChart[X, Y]
class LineChart[X, Y]
class ScatterChart[X, Y]
class StackedAreaChart[X, Y]
class StackedBarChart[X, Y]
class Control
class Accordion
class ButtonBar
class ChoiceBox[J]
class ComboBoxBase[T]
class ColorPicker
class ComboBox[T]
class DatePicker
class Labeled
class ButtonBase
class Button
class CheckBox
class Hyperlink
class MenuButton
class ToggleButton
class RadioButton
class Cell[T]
class DateCell
class IndexedCell[T]
class ListCell[T]
class CheckBoxListCell[T]
class ComboBoxListCell[T]
class TableCell[S, T]
class CheckBoxTableCell[S, T]
class ChoiceBoxTableCell[S, T]
class ComboBoxTableCell[S, T]
class TextFieldTableCell[S, T]
class TableRow[T]
class TreeCell[T]
class CheckBoxTreeCell[T]
class ComboBoxTreeCell[T]
class TreeTableCell[S, T]
class CheckBoxTreeTableCell[S, T]
class ComboBoxTreeTableCell[S, T]
class TreeTableRow[T]
class Label
class TitledPane
class ListView[T]
class MenuBar
class Pagination
class ProgressBar
class ScrollBar
class ScrollPane
class Separator
class Slider
class Spinner[T]
class SplitPane
class TabPane
class TableView[S]
class TextArea
class TextField
class ToolBar
class TreeTableView[S]
class TreeView[T]
class HTMLEditor
class Pane
class DialogPane
class AnchorPane
class BorderPane
class FlowPane
class GridPane
class HBox
class StackPane
class TilePane
class VBox
class TextFlow
class WebView
class Group
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class PerspectiveCamera(val delegate: PerspectiveCamera) extends Camera, SFXDelegate[PerspectiveCamera]

Attributes

Companion
object
Supertypes
class Camera
class Node
trait Styleable
class EventTarget
trait SFXDelegate[PerspectiveCamera]
class Object
trait Matchable
class Any
Show all
object PointLight

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
PointLight.type
class PointLight(val delegate: PointLight) extends LightBase, SFXDelegate[PointLight]

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.

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.

Attributes

Companion
object
Supertypes
class LightBase
class Node
trait Styleable
class EventTarget
trait SFXDelegate[PointLight]
class Object
trait Matchable
class Any
Show all
object Scene

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Scene.type
class Scene(val delegate: Scene) extends SFXDelegate[Scene]

Value parameters

delegate

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

Attributes

Constructor

Create a new ScalaFX Scene with JavaFX Scene as delegate.

Companion
object
Supertypes
trait SFXDelegate[Scene]
class Object
trait Matchable
class Any

Specifies the level of antialiasing desired when rendering 3D primitives.

Specifies the level of antialiasing desired when rendering 3D primitives.

Attributes

Note

In order for scene antialiasing to have an affect, the underlying system must support: ConditionalFeature.SCENE3D and anti-aliasing.

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed abstract class SceneAntialiasing(val delegate: SceneAntialiasing) extends SFXDelegate[SceneAntialiasing]

Attributes

Companion
object
Supertypes
trait SFXDelegate[SceneAntialiasing]
class Object
trait Matchable
class Any
Known subtypes
object Balanced.type
object Disabled.type
object SceneIncludes extends SceneIncludes

Attributes

Companion
trait
Supertypes
trait CellIncludes
trait TextIncludes
class Object
trait Matchable
class Any
Show all
Self type

Contains implicit methods to convert from `javafx.scene` and subpackages Classes/Traits to their ScalaFX counterparts.

Contains implicit methods to convert from `javafx.scene` and subpackages Classes/Traits to their ScalaFX counterparts.

Attributes

Companion
object
Supertypes
trait CellIncludes
trait TextIncludes
class Object
trait Matchable
class Any
Show all
Known subtypes
object SceneIncludes.type
trait Includes
object Includes.type

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class SnapshotParameters(val delegate: SnapshotParameters) extends SFXDelegate[SnapshotParameters]

Attributes

Since

2.2

Companion
object
Supertypes
trait SFXDelegate[SnapshotParameters]
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class SnapshotResult(val delegate: SnapshotResult) extends SFXDelegate[SnapshotResult]

Wraps JavaFX's [[http://docs.oracle.com/javase/8/javafx/api/javafx/scene/SnapshotResult.html SnapshotResult]]. How the original Java class does not have public constructors, it is not possible instantiate in Scala.

Wraps JavaFX's [[http://docs.oracle.com/javase/8/javafx/api/javafx/scene/SnapshotResult.html SnapshotResult]]. How the original Java class does not have public constructors, it is not possible instantiate in Scala.

Attributes

Since

2.2

Companion
object
Supertypes
trait SFXDelegate[SnapshotResult]
class Object
trait Matchable
class Any
object SpotLight

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
SpotLight.type
class SpotLight(val delegate: SpotLight) extends LightBase, SFXDelegate[SpotLight]

A SpotLight is a PointLight that 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 the SpotLight. 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.

A SpotLight is a PointLight that 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 the SpotLight. 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, a SpotLight has 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 <= 180 and falloff >= 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, if

  • theta < innerAngle then spot = 1

  • theta > outerAngle then spot = 0

  • innerAngle <= theta <= outerAngle then

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 is I = lambert * atten * spot.

Image of the Spotlight

Attributes

See also

PhongMaterial

Since

17

Companion
object
Supertypes
class LightBase
class Node
trait Styleable
class EventTarget
trait SFXDelegate[SpotLight]
class Object
trait Matchable
class Any
Show all
object SubScene

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
SubScene.type
class SubScene(val delegate: SubScene) extends Node, SFXDelegate[SubScene]

Attributes

Companion
object
Supertypes
class Node
trait Styleable
class EventTarget
trait SFXDelegate[SubScene]
class Object
trait Matchable
class Any
Show all

Deprecated classlikes

object SceneProperty

Attributes

Companion
class
Deprecated
true
Supertypes
class Object
trait Matchable
class Any
Self type
class SceneProperty(val delegate: ReadOnlyObjectProperty[Scene]) extends ReadOnlyObjectProperty[Scene], SFXDelegate[ReadOnlyObjectProperty[Scene]]

Attributes

Companion
object
Deprecated
true
Supertypes
class ReadOnlyObjectProperty[Scene]
trait ReadOnlyProperty[Scene, Scene]
trait ObservableValue[Scene, Scene]
trait Observable
trait SFXDelegate[ReadOnlyObjectProperty[Scene]]
class ObjectExpression[Scene]
class Object
trait Matchable
class Any
Show all