Class AdaptiveProperty<T>
java.lang.Object
dev.prozilla.pine.common.property.VariableProperty<T>
dev.prozilla.pine.common.property.adaptive.AdaptivePropertyBase<T>
dev.prozilla.pine.common.property.adaptive.AdaptiveProperty<T>
- All Implemented Interfaces:
Animatable
- Direct Known Subclasses:
AdaptiveColorProperty
,AdaptiveDimensionProperty
,AdaptiveDirectionProperty
,AdaptiveDistributionProperty
,AdaptiveDualDimensionProperty
,AdaptiveEdgeAlignmentProperty
,AdaptiveGridAlignmentProperty
,AdaptiveObjectProperty
,AdaptiveStringProperty
A generic optimized property that can either have a fixed or dynamic value.
-
Field Summary
Fields inherited from class dev.prozilla.pine.common.property.adaptive.AdaptivePropertyBase
animatedProperty, variableProperty
Fields inherited from class dev.prozilla.pine.common.property.VariableProperty
random
-
Constructor Summary
ConstructorsConstructorDescriptionAdaptiveProperty
(VariableProperty<T> variableProperty) Creates a new property with a dynamic value.AdaptiveProperty
(T fixedValue) Creates a new property with a fixed value. -
Method Summary
Methods inherited from class dev.prozilla.pine.common.property.adaptive.AdaptivePropertyBase
isAnimated, isDynamic, restartAnimation, updateAnimation
-
Constructor Details
-
AdaptiveProperty
Creates a new property with a dynamic value.- Parameters:
variableProperty
- Variable property that determines the value of this property
-
AdaptiveProperty
Creates a new property with a fixed value.
-
-
Method Details
-
getValue
- Specified by:
getValue
in classVariableProperty<T>
- Returns:
- The value of this property.
-