Class AdaptiveDistributionProperty
java.lang.Object
dev.prozilla.pine.common.property.VariableProperty<LayoutNode.Distribution>
dev.prozilla.pine.common.property.adaptive.AdaptivePropertyBase<LayoutNode.Distribution>
dev.prozilla.pine.common.property.adaptive.AdaptiveProperty<LayoutNode.Distribution>
dev.prozilla.pine.common.property.adaptive.AdaptiveDistributionProperty
- All Implemented Interfaces:
Animatable
-
Field Summary
Fields inherited from class dev.prozilla.pine.common.property.adaptive.AdaptivePropertyBase
animatedProperty, variablePropertyFields inherited from class dev.prozilla.pine.common.property.VariableProperty
random -
Constructor Summary
ConstructorsConstructorDescriptionAdaptiveDistributionProperty(VariableProperty<LayoutNode.Distribution> variableProperty) AdaptiveDistributionProperty(LayoutNode.Distribution fixedValue) -
Method Summary
Modifier and TypeMethodDescriptionstatic AdaptiveDistributionPropertyadapt(AdaptiveDistributionProperty property) static AdaptiveDistributionPropertyadapt(VariableProperty<LayoutNode.Distribution> property) Converts any distribution property into an adaptive property.static AdaptiveDistributionPropertyadapt(LayoutNode.Distribution value) Converts a distribution into an adaptive property.Methods inherited from class dev.prozilla.pine.common.property.adaptive.AdaptiveProperty
getValueMethods inherited from class dev.prozilla.pine.common.property.adaptive.AdaptivePropertyBase
isAnimated, isDynamic, restartAnimation, updateAnimationMethods inherited from class dev.prozilla.pine.common.property.VariableProperty
exists, getValue, getValue, hasValue
-
Constructor Details
-
AdaptiveDistributionProperty
-
AdaptiveDistributionProperty
-
-
Method Details
-
adapt
Converts a distribution into an adaptive property.- Parameters:
value- The value of the property
-
adapt
-
adapt
public static AdaptiveDistributionProperty adapt(VariableProperty<LayoutNode.Distribution> property) Converts any distribution property into an adaptive property.- Parameters:
property- The property to adapt
-