Interface ColorProperty
- All Known Implementing Classes:
AdaptiveColorProperty,AnimatedColorProperty,AnimatedColorProperty.AnimatedAlpha,FixedColorProperty,StyledColorProperty,TransitionedColorProperty,VariableColorProperty
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A property with a color value.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColorPropertyfromProperty(ColorProperty property) static ColorPropertyfromProperty(Property<Color> property) default ColorgetColor()default ColorPropertyreplaceNull(Color defaultValue) Returns a property whose value is the value of this property, ordefaultValueif the value of this property isnull.default voidTransmits this object's data to a given target object.Methods inherited from interface dev.prozilla.pine.common.property.Property
getValue, getValueOr, hasValue, hasValueProperty, isNotNull, isNotNullProperty, isNull, map, requireValue, snapshot, toStringProperty
-
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
-
getColor
- Returns:
- A new color with the value of this property.
-
replaceNull
Description copied from interface:PropertyReturns a property whose value is the value of this property, ordefaultValueif the value of this property isnull.- Specified by:
replaceNullin interfaceProperty<Color>- Returns:
- A property whose value is never
null.
-
fromProperty
-
fromProperty
-