Class VariableColorProperty
java.lang.Object
dev.prozilla.pine.common.property.VariableProperty<Color>
dev.prozilla.pine.common.property.VariableColorProperty
- All Implemented Interfaces:
ColorProperty,Transmittable<Color>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected VariableProperty<Float> protected VariableProperty<Float> protected VariableProperty<Float> protected VariableProperty<Float> Fields inherited from class dev.prozilla.pine.common.property.VariableProperty
random -
Constructor Summary
ConstructorsConstructorDescriptionVariableColorProperty(VariableProperty<Float> red, VariableProperty<Float> green, VariableProperty<Float> blue) VariableColorProperty(VariableProperty<Float> red, VariableProperty<Float> green, VariableProperty<Float> blue, VariableProperty<Float> alpha) VariableColorProperty(Color color) -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the value of this property.voidsetAlpha(VariableProperty<Float> alpha) voidsetBlue(VariableProperty<Float> blue) voidsetGreen(VariableProperty<Float> green) voidsetRed(VariableProperty<Float> red) voidTransmits this object's data to a given target object.Methods 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
-
Field Details
-
red
-
green
-
blue
-
alpha
-
-
Constructor Details
-
VariableColorProperty
-
VariableColorProperty
public VariableColorProperty(VariableProperty<Float> red, VariableProperty<Float> green, VariableProperty<Float> blue) -
VariableColorProperty
public VariableColorProperty(VariableProperty<Float> red, VariableProperty<Float> green, VariableProperty<Float> blue, VariableProperty<Float> alpha)
-
-
Method Details
-
setRed
-
setGreen
-
setBlue
-
setAlpha
-
getValue
Description copied from class:VariablePropertyReturns the value of this property.- Specified by:
getValuein classVariableProperty<Color>- Returns:
- The value of this property.
-
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
-