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 abstract class FontPosture extends SFXEnumDelegate[javafx.scene.text.FontPosture]
- sealed abstract class FontSmoothingType extends SFXEnumDelegate[javafx.scene.text.FontSmoothingType]
- sealed abstract class FontWeight extends SFXEnumDelegate[javafx.scene.text.FontWeight]
- class Text extends Shape with PositionDelegate[javafx.scene.text.Text] with SFXDelegate[javafx.scene.text.Text]
- sealed abstract class TextAlignment extends SFXEnumDelegate[javafx.scene.text.TextAlignment]
- sealed abstract class TextBoundsType extends SFXEnumDelegate[javafx.scene.text.TextBoundsType]
-
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]
Wrapper for javafx.scene.text.FontPosture
-
object
FontSmoothingType extends SFXEnumDelegateCompanion[javafx.scene.text.FontSmoothingType, FontSmoothingType]
Wrapper for javafx.scene.text.FontSmoothingType
-
object
FontWeight extends SFXEnumDelegateCompanion[javafx.scene.text.FontWeight, FontWeight]
Wrapper for javafx.scene.text.FontWeight
- object Text
-
object
TextAlignment extends SFXEnumDelegateCompanion[javafx.scene.text.TextAlignment, TextAlignment]
Wrapper for javafx.scene.text.TextAlignment
-
object
TextBoundsType extends SFXEnumDelegateCompanion[javafx.scene.text.TextBoundsType, TextBoundsType]
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
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.