package layout
- Alphabetic
- By Inheritance
- layout
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- class AnchorPane extends Pane with SFXDelegate[javafx.scene.layout.AnchorPane]
- class Background extends SFXDelegate[javafx.scene.layout.Background]
-
class
BackgroundFill extends SFXDelegate[javafx.scene.layout.BackgroundFill]
The fill and associated properties that direct how to fill the background of a Region.
-
class
BackgroundImage extends SFXDelegate[javafx.scene.layout.BackgroundImage]
Defines properties describing how to render an image as the background to some
Region
. -
class
BackgroundPosition extends SFXDelegate[javafx.scene.layout.BackgroundPosition]
Represents the position of a BackgroundImage within the Region's drawing area.
Represents the position of a BackgroundImage within the Region's drawing area.
Wrapper for http://docs.oracle.com/javafx/8/api/javafx/scene/layout/BackgroundPosition
-
sealed abstract
class
BackgroundRepeat extends SFXEnumDelegate[javafx.scene.layout.BackgroundRepeat]
Enumeration of options for repeating images in backgrounds
- class BackgroundSize extends SFXDelegate[javafx.scene.layout.BackgroundSize]
- class Border extends SFXDelegate[javafx.scene.layout.Border]
-
class
BorderImage extends SFXDelegate[javafx.scene.layout.BorderImage]
Defines properties describing how to render an image as the background to some scalafx.scene.layout.Region.
- class BorderPane extends Pane with SFXDelegate[javafx.scene.layout.BorderPane]
- sealed abstract class BorderRepeat extends SFXEnumDelegate[javafx.scene.layout.BorderRepeat]
-
class
BorderStroke extends SFXDelegate[javafx.scene.layout.BorderStroke]
Wrapper for javafx.scene.layout.BorderStroke.
-
class
BorderStrokeStyle extends SFXDelegate[javafx.scene.layout.BorderStrokeStyle]
Defines the style of the stroke to use on one side of a BorderStroke.
Defines the style of the stroke to use on one side of a BorderStroke.
Wrapper for javafx.scene.layout.BorderStrokeStyle.
-
class
BorderWidths extends SFXDelegate[javafx.scene.layout.BorderWidths]
Defines widths for four components (top, right, bottom, and left).
- class ColumnConstraints extends ConstraintsBase with SFXDelegate[javafx.scene.layout.ColumnConstraints]
- abstract class ConstraintsBase extends SFXDelegate[javafx.scene.layout.ConstraintsBase]
-
class
CornerRadii extends SFXDelegate[javafx.scene.layout.CornerRadii]
Defines the radii of each of the four corners of a BorderStroke.
-
class
FlowPane extends Pane with AlignmentDelegate[javafx.scene.layout.FlowPane] with SFXDelegate[javafx.scene.layout.FlowPane]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/layout/FlowPane.html
-
class
GridPane extends Pane with AlignmentDelegate[javafx.scene.layout.GridPane] with SFXDelegate[javafx.scene.layout.GridPane]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/layout/GridPane.html
-
class
HBox extends Pane with AlignmentDelegate[javafx.scene.layout.HBox] with SFXDelegate[javafx.scene.layout.HBox]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/layout/HBox.html
-
trait
LayoutIncludes extends AnyRef
Contains implcit methods to convert from
javafx.scene.layout
Classes/Traits to their ScalaFX counterparts. -
class
Pane extends Region with SFXDelegate[javafx.scene.layout.Pane]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/layout/Pane.html.
- sealed abstract class Priority extends SFXEnumDelegate[javafx.scene.layout.Priority]
- class Region extends Parent with SFXDelegate[javafx.scene.layout.Region]
- class RowConstraints extends ConstraintsBase with SFXDelegate[javafx.scene.layout.RowConstraints]
-
class
StackPane extends Pane with AlignmentDelegate[javafx.scene.layout.StackPane] with SFXDelegate[javafx.scene.layout.StackPane]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/layout/StackPane.html
- class TilePane extends Pane with AlignmentDelegate[javafx.scene.layout.TilePane] with SFXDelegate[javafx.scene.layout.TilePane]
-
class
VBox extends Pane with AlignmentDelegate[javafx.scene.layout.VBox] with SFXDelegate[javafx.scene.layout.VBox]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/layout/VBox.html
Value Members
- object AnchorPane
- object Background
- object BackgroundFill
- object BackgroundImage
- object BackgroundPosition
-
object
BackgroundRepeat extends SFXEnumDelegateCompanion[javafx.scene.layout.BackgroundRepeat, BackgroundRepeat]
Wrapper for javafx.scene.layout.BackgroundRepeat
- object BackgroundSize
- object Border
- object BorderImage
- object BorderPane
-
object
BorderRepeat extends SFXEnumDelegateCompanion[javafx.scene.layout.BorderRepeat, BorderRepeat]
Enum indicating the repetition rules for border images.
Enum indicating the repetition rules for border images. Wrapper for javafx.scene.layout.BorderRepeat.
- object BorderStroke
- object BorderStrokeStyle
- object BorderWidths
- object ColumnConstraints
- object ConstraintsBase
- object CornerRadii
- object FlowPane
- object GridPane
- object HBox
- object LayoutIncludes extends LayoutIncludes
- object Pane
-
object
Priority extends SFXEnumDelegateCompanion[javafx.scene.layout.Priority, Priority]
Wrapper for javafx.scene.layout.Priority
- object Region
- object RowConstraints
- object StackPane
- object TilePane
- object VBox
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
JFXApp3
. 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.