package paint
- Alphabetic
- By Inheritance
- paint
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class Color extends Paint with SFXDelegate[javafx.scene.paint.Color]
- sealed abstract class CycleMethod extends SFXEnumDelegate[javafx.scene.paint.CycleMethod]
- class LinearGradient extends Paint with SFXDelegate[javafx.scene.paint.LinearGradient]
- abstract class Material extends SFXDelegate[javafx.scene.paint.Material]
- abstract class Paint extends SFXDelegate[javafx.scene.paint.Paint]
- trait PaintIncludes extends AnyRef
Contains implcit methods to convert from
javafx.scene.paint
Classes/Traits to their ScalaFX counterparts. - class PhongMaterial extends Material with SFXDelegate[javafx.scene.paint.PhongMaterial]
The PhongMaterial class provides definitions of properties that represent a form of Phong shaded material.
- class RadialGradient extends Paint with SFXDelegate[javafx.scene.paint.RadialGradient]
- class Stop extends SFXDelegate[javafx.scene.paint.Stop]
Value Members
- object Color
- object CycleMethod extends SFXEnumDelegateCompanion[javafx.scene.paint.CycleMethod, CycleMethod]
Wrapper for javafx.scene.paint.CycleMethod
- object LinearGradient
- object Material
- object Paint
- object PaintIncludes extends PaintIncludes
- object PhongMaterial
- object RadialGradient
- object Stop
- object Stops
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.