Package adaptlil.adaptations
Class ColorAdaptation
java.lang.Object
adaptlil.adaptations.Adaptation
adaptlil.adaptations.ColorAdaptation
ColorAdaptation is an example of an Adaptation with no set strength value. Instead it relies on styleConfigs to invoke
two set CSS styles
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyStyleChange
(double stepAmount) Applies style change as specified by the stepAmountMethods inherited from class adaptlil.adaptations.Adaptation
flipDirection, getScore, getStrength, getStyleConfig, getType, hasFlipped, isBeingObservedByMediator, isState, setBeingObservedByMediator, setScore, setState, setStrength, setType
-
Constructor Details
-
ColorAdaptation
-
-
Method Details
-
applyStyleChange
public void applyStyleChange(double stepAmount) Description copied from class:Adaptation
Applies style change as specified by the stepAmount- Specified by:
applyStyleChange
in classAdaptation
-
getDefaultStyleConfig
- Specified by:
getDefaultStyleConfig
in classAdaptation
-