class BorderWidths extends SFXDelegate[javafx.scene.layout.BorderWidths]
Defines widths for four components (top, right, bottom, and left).
- Source
- BorderWidths.scala
- Alphabetic
- By Inheritance
- BorderWidths
- SFXDelegate
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new BorderWidths(top: Double, right: Double, bottom: Double, left: Double, topAsPercentage: Boolean, rightAsPercentage: Boolean, bottomAsPercentage: Boolean, leftAsPercentage: Boolean)
Creates a new BorderWidths.
- new BorderWidths(top: Double, right: Double, bottom: Double, left: Double)
Creates a new BorderWidths with the specified widths for top, right, bottom, and left.
- new BorderWidths(width: Double)
Creates a new BorderWidths using the given width for all four borders, and treating this width as a literal value, and not a percentage.
- new BorderWidths(delegate: javafx.scene.layout.BorderWidths)
Value Members
- def bottom: Double
The non-negative value (with the exception of AUTO) indicating the border thickness on the bottom of the border.
- val delegate: javafx.scene.layout.BorderWidths
JavaFX object to be wrapped.
JavaFX object to be wrapped.
- Definition Classes
- BorderWidths → SFXDelegate
- def equals(ref: Any): Boolean
Verifies if a object is equals to this delegate.
Verifies if a object is equals to this delegate.
- ref
Object to be compared.
- returns
if the other object is equals to this delegate or not.
- Definition Classes
- SFXDelegate → AnyRef → Any
- def hashCode(): Int
- returns
The delegate hashcode
- Definition Classes
- SFXDelegate → AnyRef → Any
- def left: Double
The non-negative value (with the exception of AUTO) indicating the border thickness on the left of the border.
- def right: Double
The non-negative value (with the exception of AUTO) indicating the border thickness on the right of the border.
- def toString(): String
- returns
Returns the original delegate's
toString()
adding a[SFX]
prefix.
- Definition Classes
- SFXDelegate → AnyRef → Any
- def top: Double
A non-negative value (with the exception of AUTO) indicating the border thickness on the top of the border.
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.