package text
- Alphabetic
- By Inheritance
- text
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- class Font extends SFXDelegate[javafx.scene.text.Font]
- sealed case class FontPosture (delegate: javafx.scene.text.FontPosture) extends SFXEnumDelegate[javafx.scene.text.FontPosture] with Product with Serializable
- sealed case class FontSmoothingType (delegate: javafx.scene.text.FontSmoothingType) extends SFXEnumDelegate[javafx.scene.text.FontSmoothingType] with Product with Serializable
- sealed case class FontWeight (delegate: javafx.scene.text.FontWeight) extends SFXEnumDelegate[javafx.scene.text.FontWeight] with Product with Serializable
- class Text extends Shape with PositionDelegate[javafx.scene.text.Text] with SFXDelegate[javafx.scene.text.Text]
- sealed case class TextAlignment (delegate: javafx.scene.text.TextAlignment) extends SFXEnumDelegate[javafx.scene.text.TextAlignment] with Product with Serializable
- sealed case class TextBoundsType (delegate: javafx.scene.text.TextBoundsType) extends SFXEnumDelegate[javafx.scene.text.TextBoundsType] with Product with Serializable
-
class
TextFlow
extends Pane with SFXDelegate[javafx.scene.text.TextFlow]
TextFlow is special layout designed to lay out rich text.
TextFlow is special layout designed to lay out rich text. It can be used to layout several
Text
nodes in a single text flow. TheTextFlow
uses the text and the font of eachText
node inside of it plus it own width and text alignment to determine the location for each child. A singleText
node can span over several lines due to wrapping and the visual location ofText
node can differ from the logical location due to bidi reordering.Wraps http://docs.oracle.com/javafx/8/api/javafx/scene/text/TextFlow.html
-
trait
TextIncludes
extends AnyRef
Contains implcit methods to convert from
javafx.scene.text
Classes/Traits to their ScalaFX counterparts.
Value Members
- object Font
-
object
FontPosture
extends SFXEnumDelegateCompanion[javafx.scene.text.FontPosture, FontPosture] with Serializable
Wrapper for javafx.scene.text.FontPosture
-
object
FontSmoothingType
extends SFXEnumDelegateCompanion[javafx.scene.text.FontSmoothingType, FontSmoothingType] with Serializable
Wrapper for javafx.scene.text.FontSmoothingType
-
object
FontWeight
extends SFXEnumDelegateCompanion[javafx.scene.text.FontWeight, FontWeight] with Serializable
Wrapper for javafx.scene.text.FontWeight
- object Text
-
object
TextAlignment
extends SFXEnumDelegateCompanion[javafx.scene.text.TextAlignment, TextAlignment] with Serializable
Wrapper for javafx.scene.text.TextAlignment
-
object
TextBoundsType
extends SFXEnumDelegateCompanion[javafx.scene.text.TextBoundsType, TextBoundsType] with Serializable
Wrapper for javafx.scene.text.TextBoundsType
- object TextFlow
- object TextIncludes extends TextIncludes
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.