![JAR search and dependency download from the Maven repository](/logo.png)
com.almasb.fxgl.animation.Animatable.kt Maven / Gradle / Ivy
The newest version!
/*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB ([email protected]).
* See LICENSE for details.
*/
package com.almasb.fxgl.animation
import javafx.beans.property.DoubleProperty
import javafx.geometry.Point2D
/**
* An object whose position, scale, rotation and opacity can be animated.
*
* @author Almas Baimagambetov ([email protected])
*/
interface Animatable {
fun xProperty(): DoubleProperty
fun yProperty(): DoubleProperty
fun zProperty(): DoubleProperty
fun scaleXProperty(): DoubleProperty
fun scaleYProperty(): DoubleProperty
fun scaleZProperty(): DoubleProperty
fun rotationXProperty(): DoubleProperty
fun rotationYProperty(): DoubleProperty
fun rotationZProperty(): DoubleProperty
fun opacityProperty(): DoubleProperty
fun setScaleOrigin(pivotPoint: Point2D)
fun setRotationOrigin(pivotPoint: Point2D)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy