Packages

  • package root

    ScalaFX is a UI DSL written within the Scala Language that sits on top of JavaFX 2.x and and JavaFX 8.

    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 to javafx.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 a stage that contains a scene. A stage roughly corresponds to a window in a typical UI environment. The scene holds UI content presented to the user. In the example below, the content is a pane with a single label component.

    package hello
    
    import scalafx.application.JFXApp
    import scalafx.application.JFXApp.PrimaryStage
    import scalafx.geometry.Insets
    import scalafx.scene.Scene
    import scalafx.scene.control.Label
    import scalafx.scene.layout.BorderPane
    
    object HelloWorld extends JFXApp {
      stage = new PrimaryStage {
        title = "Hello"
        scene = new Scene {
          root = new BorderPane {
            padding = Insets(25)
            center = new Label("Hello World")
          }
        }
      }
    }
    Definition Classes
    root
  • package scalafx

    Base package for ScalaFX classes.

    Base package for ScalaFX classes.

    Definition Classes
    root
  • package animation

    Wraps javafx.animation package.

    Wraps javafx.animation package.

    Definition Classes
    scalafx
  • Animation
  • AnimationIncludes
  • AnimationStatics
  • AnimationTimer
  • FadeTransition
  • FillTransition
  • Interpolator
  • KeyFrame
  • KeyValue
  • ParallelTransition
  • PathTransition
  • PauseTransition
  • RotateTransition
  • ScaleTransition
  • SequentialTransition
  • StrokeTransition
  • Timeline
  • Transition
  • TranslateTransition
  • Tweenable

class TranslateTransition extends Transition with SFXDelegate[javafx.animation.TranslateTransition]

Source
TranslateTransition.scala
Linear Supertypes
Transition, Animation, SFXDelegate[javafx.animation.TranslateTransition], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TranslateTransition
  2. Transition
  3. Animation
  4. SFXDelegate
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TranslateTransition(duration: Duration, node: Node)

    The constructor of TranslateTransition

    The constructor of TranslateTransition

    duration

    The duration of the TranslateTransition

    node

    The node which will be translated

  2. new TranslateTransition(duration: Duration)

    The constructor of TranslateTransition

    The constructor of TranslateTransition

    duration

    The duration of the TranslateTransition

  3. new TranslateTransition(delegate: javafx.animation.TranslateTransition = new jfxa.TranslateTransition())

    Creates a new ScalaFX TranslateTransition from a JavaFX TranslateTransition.

    Creates a new ScalaFX TranslateTransition from a JavaFX TranslateTransition.

    delegate

    JavaFX TranslateTransition to be delegated.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def autoReverse: BooleanProperty

    Defines whether this Animation reverses direction on alternating cycles.

    Defines whether this Animation reverses direction on alternating cycles. Default value: false.

    Definition Classes
    Animation
  6. def autoReverse_=(ar: Boolean): Unit
    Definition Classes
    Animation
  7. def byX: DoubleProperty

    Specifies the incremented stop X coordinate value, from the start, of this TranslateTransition.

  8. def byX_=(x: Double): Unit
  9. def byY: DoubleProperty

    Specifies the incremented stop Y coordinate value, from the start, of this TranslateTransition.

  10. def byY_=(y: Double): Unit
  11. def byZ: DoubleProperty

    Specifies the incremented stop Z coordinate value, from the start, of this TranslateTransition.

  12. def byZ_=(z: Double): Unit
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  14. def currentRate: ReadOnlyDoubleProperty

    Read-only variable to indicate current direction/speed at which the Animation is being played.

    Read-only variable to indicate current direction/speed at which the Animation is being played. Default value: 0.0.

    Definition Classes
    Animation
  15. def currentTime: ReadOnlyObjectProperty[Duration]

    Defines the Animation's play head position.

    Defines the Animation's play head position. Default value: 0ms.

    Definition Classes
    Animation
  16. def cycleCount: IntegerProperty

    Defines the number of cycles in this Animation.

    Defines the number of cycles in this Animation. Default value: 0ms

    Definition Classes
    Animation
  17. def cycleCount_=(r: Int): Unit
    Definition Classes
    Animation
  18. def cycleDuration: ReadOnlyObjectProperty[Duration]

    Read-only variable to indicate the duration of one cycle of this Animation: the time it takes to play from time 0 to the KeyFrame with the largest time.

    Read-only variable to indicate the duration of one cycle of this Animation: the time it takes to play from time 0 to the KeyFrame with the largest time. Default value: 1.0

    Definition Classes
    Animation
  19. def delay: ObjectProperty[Duration]

    Delays the start of an Animation.

    Delays the start of an Animation. Default value: 0ms.

    Definition Classes
    Animation
  20. def delay_=(d: Duration): Unit
    Definition Classes
    Animation
  21. val delegate: javafx.animation.TranslateTransition

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

    Definition Classes
    TranslateTransitionTransitionAnimationSFXDelegate
  22. def duration: ObjectProperty[Duration]

    The duration of the TranslateTransition.

    The duration of the TranslateTransition. Default value: 400ms

  23. def duration_=(d: Duration): Unit
  24. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. 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
  26. def fromX: DoubleProperty

    Specifies the start X coordinate value of this TranslateTransition.

    Specifies the start X coordinate value of this TranslateTransition. Default value: Double.NaN

  27. def fromX_=(x: Double): Unit
  28. def fromY: DoubleProperty

    Specifies the start Y coordinate value of this TranslateTransition.

    Specifies the start Y coordinate value of this TranslateTransition. Default value: Double.NaN

  29. def fromY_=(y: Double): Unit
  30. def fromZ: DoubleProperty

    Specifies the start Z coordinate value of this TranslateTransition.

    Specifies the start Z coordinate value of this TranslateTransition. Default value: Double.NaN

  31. def fromZ_=(z: Double): Unit
  32. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  33. def hashCode(): Int

    returns

    The delegate hashcode

    Definition Classes
    SFXDelegate → AnyRef → Any
  34. def interpolator: ObjectProperty[Interpolator]

    Controls the timing for acceleration and deceleration at each Transition cycle.

    Controls the timing for acceleration and deceleration at each Transition cycle. Default Value: Interpolator.EASE_BOTH.

    Definition Classes
    Transition
  35. def interpolator_=(i: Interpolator): Unit
    Definition Classes
    Transition
  36. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  37. def jumpTo(cuePoint: String): Unit

    Jumps to a predefined position in this Animation.

    Jumps to a predefined position in this Animation.

    cuePoint

    the name of the cue point

    Definition Classes
    Animation
  38. def jumpTo(time: Duration): Unit

    Jumps to a given position in this Animation.

    Jumps to a given position in this Animation.

    time

    the new position

    Definition Classes
    Animation
  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. def node: ObjectProperty[Node]

    The target node of this TranslateTransition.

  41. def node_=(n: Node): Unit
  42. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  43. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  44. def onFinished: ObjectProperty[EventHandler[ActionEvent]]

    The action to be executed at the conclusion of this Animation.

    The action to be executed at the conclusion of this Animation.

    Definition Classes
    Animation
  45. def onFinished_=(handler: EventHandler[ActionEvent]): Unit
    Definition Classes
    Animation
  46. def pause(): Unit

    Pauses the Animation.

    Pauses the Animation.

    Definition Classes
    Animation
  47. def play(): Unit

    Plays Animation from current position in the direction indicated by rate.

    Plays Animation from current position in the direction indicated by rate.

    Definition Classes
    Animation
  48. def playFrom(cuePoint: String): Unit

    A convenience method to play this Animation from a predefined position.

    A convenience method to play this Animation from a predefined position.

    cuePoint

    name of the cue point

    Definition Classes
    Animation
  49. def playFrom(time: Duration): Unit

    A convenience method to play this Animation from a specific position.

    A convenience method to play this Animation from a specific position.

    time

    position where to play from

    Definition Classes
    Animation
  50. def playFromStart(): Unit

    Plays an Animation from initial position in forward direction.

    Plays an Animation from initial position in forward direction.

    Definition Classes
    Animation
  51. def rate: DoubleProperty

    Defines the direction/speed at which the Animation is expected to be played.

    Defines the direction/speed at which the Animation is expected to be played. Default value: 1.0

    Definition Classes
    Animation
  52. def rate_=(r: Double): Unit
    Definition Classes
    Animation
  53. def status: ReadOnlyObjectProperty[Status]

    The status of the Animation.

    The status of the Animation.

    Definition Classes
    Animation
  54. def stop(): Unit

    Stops the Animation and resets the play head to its initial position.

    Stops the Animation and resets the play head to its initial position.

    Definition Classes
    Animation
  55. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  56. def targetFramerate: Double

    The target framerate is the maximum framerate at which this Animation will run, in frames per second.

    The target framerate is the maximum framerate at which this Animation will run, in frames per second.

    Definition Classes
    Animation
  57. def toString(): String

    returns

    Returns the original delegate's toString() adding a [SFX] prefix.

    Definition Classes
    SFXDelegate → AnyRef → Any
  58. def toX: DoubleProperty

    Specifies the stop X coordinate value of this TranslateTransition.

    Specifies the stop X coordinate value of this TranslateTransition. Default value: Double.NaN

  59. def toX_=(x: Double): Unit
  60. def toY: DoubleProperty

    Specifies the stop Y coordinate value of this TranslateTransition.

    Specifies the stop Y coordinate value of this TranslateTransition. Default value: Double.NaN

  61. def toY_=(y: Double): Unit
  62. def toZ: DoubleProperty

    Specifies the stop Z coordinate value of this TranslateTransition.

    Specifies the stop Z coordinate value of this TranslateTransition. Default value: Double.NaN

  63. def toZ_=(z: Double): Unit
  64. def totalDuration: ReadOnlyObjectProperty[Duration]

    Read-only variable to indicate the total duration of this Animation, including repeats.

    Read-only variable to indicate the total duration of this Animation, including repeats. Default value: 0ms

    Definition Classes
    Animation
  65. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  66. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  67. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Transition

Inherited from Animation

Inherited from SFXDelegate[javafx.animation.TranslateTransition]

Inherited from AnyRef

Inherited from Any

Ungrouped