Class PolygonStyle
java.lang.Object
io.jmix.mapsflowui.kit.component.model.style.PolygonStyle
Helper class for styling polygon
Feature
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Sets fill object that describes which color should be used for filling feature.withStroke
(Stroke stroke) Sets stroke style for feature.withZIndex
(Integer zIndex) Sets Z-index to style.
-
Field Details
-
style
-
-
Constructor Details
-
PolygonStyle
public PolygonStyle()
-
-
Method Details
-
withStroke
Sets stroke style for feature. It describes line styling: width, color, dash, etc.Delegates to
Style.setStroke(Stroke)
.- Parameters:
stroke
- stroke to set- Returns:
- current instance
-
withFill
Sets fill object that describes which color should be used for filling feature.Delegates to
Style.setFill(Fill)
.- Parameters:
fill
- fill to set- Returns:
- current instance
-
withZIndex
Sets Z-index to style. It is used to order styles added to the feature.Delegates to
Style.setZIndex(Integer)
.- Parameters:
zIndex
- z-index to set- Returns:
- current instance
-
build
- Returns:
Style
object
-