Class AdaptiveColorProperty
java.lang.Object
dev.prozilla.pine.common.property.adaptive.AdaptiveProperty<Color,Property<Color>>
dev.prozilla.pine.common.property.adaptive.AdaptiveObjectProperty<Color>
dev.prozilla.pine.common.property.adaptive.AdaptiveColorProperty
- All Implemented Interfaces:
Animatable,ColorProperty,Property<Color>,Transmittable<Color>,Functor<Color>
public final class AdaptiveColorProperty
extends AdaptiveObjectProperty<Color>
implements ColorProperty
-
Field Summary
Fields inherited from class dev.prozilla.pine.common.property.adaptive.AdaptiveProperty
animatedProperty, property -
Constructor Summary
ConstructorsConstructorDescriptionAdaptiveColorProperty(Property<Color> property) AdaptiveColorProperty(Color fixedValue) -
Method Summary
Modifier and TypeMethodDescriptionstatic AdaptiveColorPropertyadapt(AdaptiveColorProperty property) static AdaptiveColorPropertyadapt(ColorProperty 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.AdaptiveObjectProperty
adapt, adapt, adapt, getValueMethods inherited from class dev.prozilla.pine.common.property.adaptive.AdaptiveProperty
isAnimated, isDynamic, restartAnimation, updateAnimationMethods 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, replaceNullMethods inherited from interface dev.prozilla.pine.common.property.Property
getValue, getValueOr, hasValue, hasValueProperty, isNotNull, isNotNullProperty, isNull, map, requireValue, snapshot, toStringProperty
-
Constructor Details
-
AdaptiveColorProperty
-
AdaptiveColorProperty
-
-
Method Details
-
transmit
Description copied from interface:TransmittableTransmits this object's data to a given target object.- Specified by:
transmitin interfaceColorProperty- 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
-