Class CssPropertyMapper
java.lang.Object
ch.nolix.system.gui.cssmapper.CssPropertyMapper
- All Implemented Interfaces:
ICssPropertyMapper
A
CssPropertyMapper is not mutable.- Author:
- Silvan Wyss
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmapBackgroundToCssProperties(IBackground background) mapCornerShadowsToOptionalCssProperty(IContainer<? extends ICornerShadow> cornerShadows) mapCornerShadowToCssProperty(ICornerShadow cornerShadow) mapLineDecorationToCssProperty(LineDecoration lineDecoration)
-
Constructor Details
-
CssPropertyMapper
public CssPropertyMapper()
-
-
Method Details
-
mapBackgroundToCssProperties
- Specified by:
mapBackgroundToCssPropertiesin interfaceICssPropertyMapper- Parameters:
background-- Returns:
- the
ICssPropertys from the given background.
-
mapCornerShadowToCssProperty
- Specified by:
mapCornerShadowToCssPropertyin interfaceICssPropertyMapper- Parameters:
cornerShadow-- Returns:
- a new
ICssPropertyfrom the given cornerShadow.
-
mapCornerShadowsToOptionalCssProperty
public Optional<ICssProperty> mapCornerShadowsToOptionalCssProperty(IContainer<? extends ICornerShadow> cornerShadows) - Specified by:
mapCornerShadowsToOptionalCssPropertyin interfaceICssPropertyMapper- Parameters:
cornerShadows-- Returns:
- a
Optionalwith a newICssPropertyfrom the given cornerShadows if the given cornerShadows is not empty, an emptyOptionalotherwise.
-
mapLineDecorationToCssProperty
- Specified by:
mapLineDecorationToCssPropertyin interfaceICssPropertyMapper- Parameters:
lineDecoration-- Returns:
- a new
ICssPropertyfrom the given lineDecoration.
-