Class Style<T>
java.lang.Object
dev.prozilla.pine.common.property.style.Style<T>
- Type Parameters:
T- The type of the property
Represents a collection of rules for a single style property of a node.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceStyle.StyledPropertyFactory<T,P extends StyledProperty<T>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddTransitionRule(StyleRule<AnimationCurve> transitionRule) booleanbooleangetRules()voidsetDefaultValue(AdaptiveProperty<T> defaultValue) <P extends StyledProperty<T>>
PtoProperty(StyledPropertyKey<T> name, Node node, AdaptivePropertyBase<T> fallbackValue, Style.StyledPropertyFactory<T, P> factory)
-
Constructor Details
-
Style
public Style()
-
-
Method Details
-
getRules
-
getTransitionRules
-
addRule
-
addTransitionRule
-
setDefaultValue
-
toProperty
@Contract("_, _, _, _ -> new") public <P extends StyledProperty<T>> P toProperty(StyledPropertyKey<T> name, Node node, AdaptivePropertyBase<T> fallbackValue, Style.StyledPropertyFactory<T, P> factory) -
equals
-
equals
-