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()
void
setAlpha
(VariableProperty<Float> alpha) void
setBlue
(VariableProperty<Float> blue) void
setGreen
(VariableProperty<Float> green) void
setRed
(VariableProperty<Float> red) void
Transmits 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, wait
Methods 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
- Specified by:
getValue
in classVariableProperty<Color>
- Returns:
- The value of this property.
-
transmit
Description copied from interface:Transmittable
Transmits this object's data to a given target object.- Specified by:
transmit
in interfaceTransmittable<Color>
- Parameters:
target
- the target object to which data will be transmitted
-