Class SceneBuilder
-
- All Implemented Interfaces:
public final class SceneBuilderScene builder for orchestrating concurrent asynchronous movements.
-
-
Constructor Summary
Constructors Constructor Description SceneBuilder()
-
Method Summary
Modifier and Type Method Description final <T extends AsyncRotator> UnitmoveTo(T $self, Function1<Rotate, Unit> rotate)DSL construct for moveTo with named parameter assignment syntax. final <T extends AsyncRotator> Unitsmoothly(T $self, Function1<SmoothRotate, Unit> rotate)DSL construct for smooth movements with named parameter assignment syntax. final <T extends AsyncRotator> UnitwithSoftLaunch(T $self, Function1<SoftLaunchRotate, Unit> rotate)DSL construct for soft launch movements with named parameter assignment syntax. final <T extends AsyncRotator> UnitwithSoftLanding(T $self, Function1<SoftLandingRotate, Unit> rotate)DSL construct for soft landing movements with named parameter assignment syntax. final <Error class: unknown class>invoke()Starts all actions concurrently and waits for their completion. final <Error class: unknown class>play()Runnit (blocking). final Jobstart()Runnit (non-blocking). -
-
Method Detail
-
moveTo
final <T extends AsyncRotator> Unit moveTo(T $self, Function1<Rotate, Unit> rotate)
DSL construct for moveTo with named parameter assignment syntax. Usage:
rotator moveTo { angle = 90; duration = 2.seconds; ease = linear }
-
smoothly
final <T extends AsyncRotator> Unit smoothly(T $self, Function1<SmoothRotate, Unit> rotate)
DSL construct for smooth movements with named parameter assignment syntax. Usage:
rotator smoothly { angle = 90; duration = 2.seconds }
-
withSoftLaunch
final <T extends AsyncRotator> Unit withSoftLaunch(T $self, Function1<SoftLaunchRotate, Unit> rotate)
DSL construct for soft launch movements with named parameter assignment syntax. Usage:
rotator withSoftLaunch { angle = 90; duration = 2.seconds }
-
withSoftLanding
final <T extends AsyncRotator> Unit withSoftLanding(T $self, Function1<SoftLandingRotate, Unit> rotate)
DSL construct for soft landing movements with named parameter assignment syntax. Usage:
rotator withSoftLanding { angle = 90; duration = 2.seconds }
-
invoke
final <Error class: unknown class> invoke()
Starts all actions concurrently and waits for their completion.
-
play
final <Error class: unknown class> play()
Runnit (blocking).
-
start
final Job start()
Runnit (non-blocking).
-
-
-
-