scalafx.scene
Wraps `javafx.scene` package.
Attributes
Members list
Packages
Wraps `javafx.scene.canvas` package.
Wraps `javafx.scene.chart` package.
Wraps `javafx.scene.control` package.
Wraps `javafx.scene.effect` package.
Wraps `javafx.scene.image` package.
Wraps `javafx.scene.input` package.
Wraps `javafx.scene.layout` package.
Wraps `javafx.scene.media` package.
Wraps `javafx.scene.paint` package.
Wraps `javafx.scene.shape` package.
Wraps `javafx.scene.text` package.
Wraps `javafx.scene.transform` package.
Wraps `javafx.scene.web` package.
Type members
Classlikes
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 Sumtrait Mirrorclass Objecttrait Matchableclass AnyShow all
- Self type
-
AccessibleAction.type
Attributes
- Companion
- object
- Supertypes
-
trait SFXEnumDelegate[AccessibleAction]trait SFXDelegate[AccessibleAction]class Objecttrait Matchableclass Any
- Known subtypes
-
object BlockDecrement.typeobject BlockIncrement.typeobject Collapse.typeobject Decrement.typeobject Expand.typeobject Fire.typeobject Increment.typeobject RequestFocus.typeobject SetSelectedItems.typeobject SetText.typeobject SetTextSelection.typeobject SetValue.typeobject ShowItem.typeobject ShowMenu.typeobject ShowTextRange.typeShow all
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 Sumtrait Mirrorclass Objecttrait Matchableclass AnyShow all
- Self type
-
AccessibleRole.type
Attributes
- Companion
- object
- Supertypes
-
trait SFXEnumDelegate[AccessibleRole]trait SFXDelegate[AccessibleRole]class Objecttrait Matchableclass Any
- Known subtypes
-
object Button.typeobject CheckBox.typeobject CheckBoxTreeItem.typeobject CheckMenuItem.typeobject ComboBox.typeobject ContextMenu.typeobject DatePicker.typeobject DecrementButton.typeobject Dialog.typeobject Hyperlink.typeobject ImageView.typeobject IncrementButton.typeobject ListItem.typeobject ListView.typeobject Menu.typeobject MenuBar.typeobject MenuButton.typeobject MenuItem.typeobject Node.typeobject PageItem.typeobject Pagination.typeobject Parent.typeobject PasswordField.typeobject ProgressIndicator.typeobject RadioButton.typeobject RadioMenuItem.typeobject ScrollBar.typeobject ScrollPane.typeobject Slider.typeobject Spinner.typeobject SplitMenuButton.typeobject TabItem.typeobject TabPane.typeobject TableCell.typeobject TableColumn.typeobject TableRow.typeobject TableView.typeobject Text.typeobject TextArea.typeobject TextField.typeobject Thumb.typeobject TitledPane.typeobject ToggleButton.typeobject ToolBar.typeobject Tooltip.typeobject TreeItem.typeobject TreeTableCell.typeobject TreeTableRow.typeobject TreeTableView.typeobject TreeView.typeShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
AmbientLight.type
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 LightBaseclass Nodetrait Styleableclass EventTargettrait SFXDelegate[AmbientLight]class Objecttrait Matchableclass AnyShow all
Wrapper for javafx.scene.CacheHint
Wrapper for javafx.scene.CacheHint
Attributes
Attributes
- Companion
- object
- Supertypes
-
trait SFXEnumDelegate[CacheHint]trait SFXDelegate[CacheHint]class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- object
- Supertypes
-
class Nodetrait Styleableclass EventTargettrait SFXDelegate[Camera]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class ParallelCameraclass PerspectiveCamera
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
class ImageCursor
Wrapper for javafx.scene.DepthTest
Wrapper for javafx.scene.DepthTest
Attributes
Attributes
- Companion
- object
- Supertypes
-
trait SFXEnumDelegate[DepthTest]trait SFXDelegate[DepthTest]class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- object
- Supertypes
-
class Parentclass Nodetrait Styleableclass EventTargettrait SFXDelegate[Group]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ImageCursor.type
Attributes
- Companion
- object
- Supertypes
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 Nodetrait Styleableclass EventTargettrait SFXDelegate[LightBase]class Objecttrait Matchableclass AnyShow all
- Known subtypes
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 Objecttrait Matchableclass Any
- Known subtypes
Companion object for scalafx.scene.Node.
Companion object for scalafx.scene.Node.
Attributes
Value parameters
- delegate
-
JavaFX Node
Attributes
- Constructor
-
creates a new ScalaFX Node from a JavaFX Node.
- Companion
- object
- Supertypes
-
trait Styleableclass EventTargettrait SFXDelegate[Node]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class SwingNodeclass Canvasclass ImageViewclass MediaViewclass Shapeclass Arcclass Circleclass CubicCurveclass Ellipseclass Lineclass Pathclass Polygonclass Polylineclass QuadCurveclass Rectangleclass SVGPathclass Textclass Shape3Dclass Boxclass Cylinderclass MeshViewclass Sphereclass Cameraclass ParallelCameraclass PerspectiveCameraclass LightBaseclass AmbientLightclass PointLightclass SpotLightclass Parentclass Regionclass Axis[T]class CategoryAxisclass ValueAxis[T]class NumberAxisclass Chartclass PieChartclass Controlclass Accordionclass ButtonBarclass ChoiceBox[J]class ComboBoxBase[T]class ColorPickerclass ComboBox[T]class DatePickerclass Labeledclass ButtonBaseclass Buttonclass CheckBoxclass Hyperlinkclass MenuButtonclass SplitMenuButtonclass ToggleButtonclass RadioButtonclass Cell[T]class DateCellclass IndexedCell[T]class ListCell[T]class CheckBoxListCell[T]class ChoiceBoxListCell[T]class ComboBoxListCell[T]class TextFieldListCell[T]class ProgressBarTableCell[S]class TableRow[T]class TreeCell[T]class CheckBoxTreeCell[T]class ChoiceBoxTreeCell[T]class ComboBoxTreeCell[T]class TextFieldTreeCell[T]class TreeTableRow[T]class Labelclass TitledPaneclass ListView[T]class MenuBarclass Paginationclass ProgressIndicatorclass ProgressBarclass ScrollBarclass ScrollPaneclass Separatorclass Sliderclass Spinner[T]class SplitPaneclass TabPaneclass TableView[S]class TextInputControlclass TextAreaclass TextFieldclass PasswordFieldclass ToolBarclass TreeTableView[S]class TreeView[T]class HTMLEditorclass Paneclass DialogPaneclass AnchorPaneclass BorderPaneclass FlowPaneclass GridPaneclass HBoxclass StackPaneclass TilePaneclass VBoxclass TextFlowclass WebViewclass Groupclass SubSceneShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ParallelCamera.type
Attributes
- Companion
- object
- Supertypes
-
class Cameraclass Nodetrait Styleableclass EventTargettrait SFXDelegate[ParallelCamera]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
class Nodetrait Styleableclass EventTargettrait SFXDelegate[Parent]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class Regionclass Axis[T]class CategoryAxisclass ValueAxis[T]class NumberAxisclass Chartclass PieChartclass Controlclass Accordionclass ButtonBarclass ChoiceBox[J]class ComboBoxBase[T]class ColorPickerclass ComboBox[T]class DatePickerclass Labeledclass ButtonBaseclass Buttonclass CheckBoxclass Hyperlinkclass MenuButtonclass SplitMenuButtonclass ToggleButtonclass RadioButtonclass Cell[T]class DateCellclass IndexedCell[T]class ListCell[T]class CheckBoxListCell[T]class ChoiceBoxListCell[T]class ComboBoxListCell[T]class TextFieldListCell[T]class ProgressBarTableCell[S]class TableRow[T]class TreeCell[T]class CheckBoxTreeCell[T]class ChoiceBoxTreeCell[T]class ComboBoxTreeCell[T]class TextFieldTreeCell[T]class TreeTableRow[T]class Labelclass TitledPaneclass ListView[T]class MenuBarclass Paginationclass ProgressIndicatorclass ProgressBarclass ScrollBarclass ScrollPaneclass Separatorclass Sliderclass Spinner[T]class SplitPaneclass TabPaneclass TableView[S]class TextInputControlclass TextAreaclass TextFieldclass PasswordFieldclass ToolBarclass TreeTableView[S]class TreeView[T]class HTMLEditorclass Paneclass DialogPaneclass AnchorPaneclass BorderPaneclass FlowPaneclass GridPaneclass HBoxclass StackPaneclass TilePaneclass VBoxclass TextFlowclass WebViewclass GroupShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PerspectiveCamera.type
Attributes
- Companion
- object
- Supertypes
-
class Cameraclass Nodetrait Styleableclass EventTargettrait SFXDelegate[PerspectiveCamera]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PointLight.type
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 LightBaseclass Nodetrait Styleableclass EventTargettrait SFXDelegate[PointLight]class Objecttrait Matchableclass AnyShow all
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 Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
SceneAntialiasing.type
Attributes
- Companion
- object
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
trait SceneIncludestrait ControlIncludestrait CellIncludestrait LowerPriorityIncludestrait EffectIncludestrait ImageIncludestrait TextIncludestrait ShapeIncludestrait PaintIncludestrait LayoutIncludestrait ChartIncludesclass Objecttrait Matchableclass AnyShow all
- Self type
-
SceneIncludes.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 ControlIncludestrait CellIncludestrait LowerPriorityIncludestrait EffectIncludestrait ImageIncludestrait TextIncludestrait ShapeIncludestrait PaintIncludestrait LayoutIncludestrait ChartIncludesclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SnapshotParameters.type
Attributes
- Since
-
2.2
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SnapshotResult.type
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
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
thenspot = 1
-
theta > outerAngle
thenspot = 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
.
Attributes
- See also
-
PhongMaterial
- Since
-
17
- Companion
- object
- Supertypes
-
class LightBaseclass Nodetrait Styleableclass EventTargettrait SFXDelegate[SpotLight]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
class Nodetrait Styleableclass EventTargettrait SFXDelegate[SubScene]class Objecttrait Matchableclass AnyShow all
Deprecated classlikes
Attributes
- Companion
- class
- Deprecated
- true
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SceneProperty.type
Attributes
- Companion
- object
- Deprecated
- true
- Supertypes
-
class ReadOnlyObjectProperty[Scene]trait Observableclass ObjectExpression[Scene]class Objecttrait Matchableclass AnyShow all