package image
- Alphabetic
- By Inheritance
- image
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class Image extends SFXDelegate[javafx.scene.image.Image]
- trait ImageIncludes extends AnyRef
Contains implcit methods to convert from
javafx.scene.image
Classes/Traits to their ScalaFX counterparts. - class ImageView extends Node with PositionDelegate[javafx.scene.image.ImageView] with SFXDelegate[javafx.scene.image.ImageView]
- abstract class PixelFormat[B <: Buffer] extends SFXDelegate[javafx.scene.image.PixelFormat[B]]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/image/PixelFormat.html
- trait PixelReader extends SFXDelegate[javafx.scene.image.PixelReader]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/image/PixelReader.html
- trait PixelWriter extends SFXDelegate[javafx.scene.image.PixelWriter]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/image/PixelWriter.html
- class WritableImage extends Image with SFXDelegate[javafx.scene.image.WritableImage]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/image/WritableImage.html
- abstract class WritablePixelFormat[B <: Buffer] extends PixelFormat[B] with SFXDelegate[javafx.scene.image.WritablePixelFormat[B]]
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/scene/image/WritablePixelFormat.html
Value Members
- object Image
- object ImageIncludes extends ImageIncludes
- object ImageView
- object PixelFormat
- object PixelReader
- object PixelWriter
- object WritableImage
- object WritablePixelFormat
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.