public class AnimationProperty<T> extends Object implements CustomizableAnimation<AnimationProperty<T>>
PropertyWrapper.| Constructor and Description |
|---|
AnimationProperty(PropertyWrapper<T> property)
Instantiates an implicitly animated property
|
AnimationProperty(PropertyWrapper<T> property,
AnimationSettings settings)
Instantiates an implicitly animated property
|
| Modifier and Type | Method and Description |
|---|---|
PropertyWrapper<T> |
getProperty() |
AnimationSettings |
getSettings() |
boolean |
isActive() |
void |
register()
Registers the listener
|
void |
register(javafx.scene.Node target)
Registers the listener
|
void |
setActive(boolean active) |
<A extends AnimationProperty<T>> |
withSettings(AnimationSettings settings)
Applies custom animation settings
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcustompublic AnimationProperty(PropertyWrapper<T> property, AnimationSettings settings)
property - target propertysettings - animation settingspublic AnimationProperty(PropertyWrapper<T> property)
property - target propertypublic AnimationSettings getSettings()
getSettings in interface CustomizableAnimation<AnimationProperty<T>>public <A extends AnimationProperty<T>> A withSettings(AnimationSettings settings)
CustomizableAnimationwithSettings in interface CustomizableAnimation<AnimationProperty<T>>A - either T or subclasssettings - animation settings to setpublic void register(javafx.scene.Node target)
target - nullable target Node. If present, the animation is not played when it is not in scene.public void register()
public PropertyWrapper<T> getProperty()
public boolean isActive()
public void setActive(boolean active)
active - whether the property should be animatedCopyright © 2022. All rights reserved.