StrokeTransition

scalafx.animation.StrokeTransition
See theStrokeTransition companion object
class StrokeTransition(val delegate: StrokeTransition) extends Transition, SFXDelegate[StrokeTransition]

Wraps a StrokeTransition.

Value parameters

delegate

JavaFX $ST to be delegated.

Attributes

Constructor

Creates a new ScalaFX $ST from a JavaFX $ST.

Companion
object
Graph
Supertypes
class Transition
class Animation
trait SFXDelegate[StrokeTransition]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this(duration: Duration, shape: Shape, fromValue: Color, toValue: Color)

The constructor of StrokeTransition

The constructor of StrokeTransition

Value parameters

duration

The duration of the StrokeTransition.

fromValue

The start value of the color-animation

shape

The shape which filling will be animated

toValue

The end value of the color-animation

Attributes

def this(duration: Duration, fromValue: Color, toValue: Color)

The constructor of StrokeTransition

The constructor of StrokeTransition

Value parameters

duration

The duration of the StrokeTransition.

fromValue

The start value of the color-animation

toValue

The end value of the color-animation

Attributes

def this(duration: Duration, shape: Shape)

The constructor of StrokeTransition

The constructor of StrokeTransition

Value parameters

duration

The duration of the StrokeTransition.

shape

The shape which filling will be animated

Attributes

def this(duration: Duration)

The constructor of StrokeTransition

The constructor of StrokeTransition

Value parameters

duration

The duration of the StrokeTransition.

Attributes

Concrete methods

def duration: ObjectProperty[Duration]

The duration of the StrokeTransition.. Default value: 400ms

The duration of the StrokeTransition.. Default value: 400ms

Attributes

Specifies the start color value for this StrokeTransition. Default value: null

Specifies the start color value for this StrokeTransition. Default value: null

Attributes

def fromValue_=(from: Color): Unit
def shape: ObjectProperty[Shape]

The target shape of this StrokeTransition.

The target shape of this StrokeTransition.

Attributes

def shape_=(s: Shape): Unit
def toValue: ObjectProperty[Color]

Specifies the stop color value for this StrokeTransition. Default value: null

Specifies the stop color value for this StrokeTransition. Default value: null

Attributes

def toValue_=(to: Color): Unit

Inherited methods

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

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

Attributes

Inherited from:
Animation

Attributes

Inherited from:
Animation

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

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

Attributes

Inherited from:
Animation

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

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

Attributes

Inherited from:
Animation

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

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

Attributes

Inherited from:
Animation
def cycleCount_=(r: Int): Unit

Attributes

Inherited from:
Animation

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

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

Attributes

Inherited from:
Animation
def delay: ObjectProperty[Duration]

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

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

Attributes

Inherited from:
Animation
def delay_=(d: Duration): Unit

Attributes

Inherited from:
Animation
override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value parameters

ref

Object to be compared.

Attributes

Returns

if the other object is equals to this delegate or not.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
def interpolator: ObjectProperty[Interpolator]

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

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

Attributes

Inherited from:
Transition
def interpolator_=(i: Interpolator): Unit

Attributes

Inherited from:
Transition
def jumpTo(cuePoint: String): Unit

Jumps to a predefined position in this Animation.

Jumps to a predefined position in this Animation.

Value parameters

cuePoint

the name of the cue point

Attributes

Inherited from:
Animation
def jumpTo(time: Duration): Unit

Jumps to a given position in this Animation.

Jumps to a given position in this Animation.

Value parameters

time

the new position

Attributes

Inherited from:
Animation
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.

Attributes

Inherited from:
Animation
def onFinished_=(handler: EventHandler[ActionEvent]): Unit

Attributes

Inherited from:
Animation
def pause(): Unit

Pauses the Animation.

Pauses the Animation.

Attributes

Inherited from:
Animation
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.

Attributes

Inherited from:
Animation
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.

Value parameters

cuePoint

name of the cue point

Attributes

Inherited from:
Animation
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.

Value parameters

time

position where to play from

Attributes

Inherited from:
Animation

Plays an Animation from initial position in forward direction.

Plays an Animation from initial position in forward direction.

Attributes

Inherited from:
Animation

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

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

Attributes

Inherited from:
Animation
def rate_=(r: Double): Unit

Attributes

Inherited from:
Animation

The status of the Animation.

The status of the Animation.

Attributes

Inherited from:
Animation
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.

Attributes

Inherited from:
Animation

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.

Attributes

Inherited from:
Animation
override def toString: String

Attributes

Returns

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

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate

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

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

Attributes

Inherited from:
Animation

Concrete fields

override val delegate: StrokeTransition

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes