Class VariableColorProperty
java.lang.Object
dev.prozilla.pine.common.property.VariableColorProperty
- All Implemented Interfaces:
ColorProperty,Property<Color>,Transmittable<Color>,Functor<Color>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FloatPropertyprotected FloatPropertyprotected FloatPropertyprotected FloatProperty -
Constructor Summary
ConstructorsConstructorDescriptionVariableColorProperty(FloatProperty red, FloatProperty green, FloatProperty blue) VariableColorProperty(FloatProperty red, FloatProperty green, FloatProperty blue, FloatProperty alpha) VariableColorProperty(Color color) -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the value of this property.voidsetAlpha(FloatProperty alpha) voidsetBlue(FloatProperty blue) voidsetGreen(FloatProperty green) voidsetRed(FloatProperty red) voidTransmits this object's data to a given target object.Methods 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
getValueOr, hasValue, hasValueProperty, isNotNull, isNotNullProperty, isNull, map, requireValue, snapshot, toStringProperty
-
Field Details
-
red
-
green
-
blue
-
alpha
-
-
Constructor Details
-
VariableColorProperty
-
VariableColorProperty
-
VariableColorProperty
public VariableColorProperty(FloatProperty red, FloatProperty green, FloatProperty blue, FloatProperty alpha)
-
-
Method Details
-
setRed
-
setGreen
-
setBlue
-
setAlpha
-
getValue
Description copied from interface:PropertyReturns the value of this property. -
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
-