Package adaptlil.adaptations
Class DeemphasisAdaptation
java.lang.Object
adaptlil.adaptations.Adaptation
adaptlil.adaptations.DeemphasisAdaptation
The Deemphasis adaptation reduces opacity of surrounding elements. As such, the only 'style' it has in its config is the
CSS attribute, opacity.
-
Constructor Summary
ConstructorsConstructorDescriptionDeemphasisAdaptation(boolean state, Map<String, String> styleConfig, double strength) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStyleChange(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
-
DeemphasisAdaptation
-
-
Method Details
-
applyStyleChange
public void applyStyleChange(double stepAmount) Description copied from class:AdaptationApplies style change as specified by the stepAmount- Specified by:
applyStyleChangein classAdaptation
-
getDefaultStyleConfig
- Specified by:
getDefaultStyleConfigin classAdaptation
-