object Cursor
- Source
- Cursor.scala
- Alphabetic
- By Inheritance
- Cursor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val ClosedHand: Cursor
A cursor with a hand that is closed, often used when "grabbing", for example, when panning.
- val Crosshair: Cursor
The crosshair cursor type.
- val Default: Cursor
The default cursor type (gets set if no cursor is defined) {}.
- val Disappear: Cursor
The disappear cursor type.
- val EResize: Cursor
The east-resize cursor type.
- val HResize: Cursor
The horizontal cursor type.
- val Hand: Cursor
The hand cursor type, resembling a pointing hand, often used to indicate that something can be clicked, such as a hyperlink.
- val Move: Cursor
The move cursor type.
- val NEResize: Cursor
The north-east-resize cursor type.
- val NResize: Cursor
The north-resize cursor type.
- val NWResize: Cursor
The north-west-resize cursor type.
- val None: Cursor
The none cursor type.
- val OpenHand: Cursor
A cursor with a hand which is open
- val SEResize: Cursor
The south-east-resize cursor type.
- val SResize: Cursor
The south-resize cursor type.
- val SWResize: Cursor
The south-west-resize cursor type.
- val Text: Cursor
The text cursor type.
- val VResize: Cursor
The vertical cursor type.
- val WResize: Cursor
The west-resize cursor type.
- val Wait: Cursor
The wait cursor type.
- def apply(identifier: String): Cursor
Returns a cursor for the specified identifier.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- implicit def sfxCursor2jfx(c: Cursor): javafx.scene.Cursor
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- val CLOSED_HAND: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use ClosedHand; CLOSED_HAND will be removed in a future release
- val CROSSHAIR: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use Crosshair; CROSSHAIR will be removed in a future release
- val DEFAULT: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use Default; DEFAULT will be removed in a future release
- val DISAPPEAR: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use Disappear; DISAPPEAR will be removed in a future release
- val E_RESIZE: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use EResize; E_RESIZE will be removed in a future release
- val HAND: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use Hand; HAND will be removed in a future release
- val H_RESIZE: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use HResize; H_RESIZE will be removed in a future release
- val MOVE: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use Move; MOVE will be removed in a future release
- val NE_RESIZE: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use NEResize; NE_RESIZE will be removed in a future release
- val NONE: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use None; NONE will be removed in a future release
- val NW_RESIZE: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use NWResize; NW_RESIZE will be removed in a future release
- val N_RESIZE: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use NResize; N_RESIZE will be removed in a future release
- val OPEN_HAND: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use OpenHand; OPEN_HAND will be removed in a future release
- val SE_RESIZE: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use SEResize; SE_RESIZE will be removed in a future release
- val SW_RESIZE: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use SWResize; SW_RESIZE will be removed in a future release
- val S_RESIZE: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use SResize; S_RESIZE will be removed in a future release
- val TEXT: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use Text; TEXT will be removed in a future release
- val V_RESIZE: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use VResize; V_RESIZE will be removed in a future release
- val WAIT: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use Wait; WAIT will be removed in a future release
- val W_RESIZE: Cursor
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use WResize; W_RESIZE will be removed in a future release
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
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.