Class AdaptiveColorProperty
java.lang.Object
dev.prozilla.pine.common.property.VariableProperty<Color>
dev.prozilla.pine.common.property.adaptive.AdaptivePropertyBase<Color>
dev.prozilla.pine.common.property.adaptive.AdaptiveProperty<Color>
dev.prozilla.pine.common.property.adaptive.AdaptiveColorProperty
- All Implemented Interfaces:
Animatable,ColorProperty,Transmittable<Color>
-
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
ConstructorsConstructorDescriptionAdaptiveColorProperty(VariableProperty<Color> variableProperty) AdaptiveColorProperty(Color fixedValue) -
Method Summary
Modifier and TypeMethodDescriptionstatic AdaptiveColorPropertyadapt(AdaptiveColorProperty property) static AdaptiveColorPropertyadapt(VariableProperty<Color> property) Converts any color property into an adaptive property.static AdaptiveColorPropertyConverts a color into an adaptive property.voidTransmits this object's data to a given target object.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, hasValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.prozilla.pine.common.property.ColorProperty
getColor
-
Constructor Details
-
AdaptiveColorProperty
-
AdaptiveColorProperty
-
-
Method Details
-
transmit
Description copied from interface:TransmittableTransmits this object's data to a given target object.- Specified by:
transmitin interfaceTransmittable<Color>- Parameters:
target- The target object to transmit data to
-
adapt
Converts a color into an adaptive property.- Parameters:
value- The value of the property
-
adapt
-
adapt
Converts any color property into an adaptive property.- Parameters:
property- The property to adapt
-