Class PolygonStyle
java.lang.Object
io.jmix.mapsui.component.layer.style.GeometryStyle
io.jmix.mapsui.component.layer.style.PolylineStyle
io.jmix.mapsui.component.layer.style.PolygonStyle
Class representing style parameters for a polygon.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetFill()
setDashArray
(String dashArray) Sets the stroke dash-pattern.Set whether to fill the path with color.setFillColor
(String fillColor) Set fill color.setFillOpacity
(Double fillOpacity) Set fill opacity.setLineCap
(String lineCap) Sets shape to be used at the end of the stroke.setLineJoin
(String lineJoin) Sets shape to be used at the corners of the stroke.Set whether to draw stroke along the path.setStrokeColor
(String strokeColor) Sets stroke color.setStrokeOpacity
(Double strokeOpacity) Sets stroke opacity.setStrokeWeight
(Integer strokeWeight) Sets stroke width in pixels.Methods inherited from class io.jmix.mapsui.component.layer.style.PolylineStyle
getDashArray, getLineCap, getLineJoin, getStrokeColor, getStrokeOpacity, getStrokeWeight
-
Constructor Details
-
PolygonStyle
public PolygonStyle()
-
-
Method Details
-
getStroke
-
setStroke
Set whether to draw stroke along the path. To disable borders set it tofalse
.- Parameters:
stroke
-- Returns:
- the instance of
PolygonStyle
on which this method was called. Useful for a fluent API.
-
getFill
-
setFill
Set whether to fill the path with color. To disable filling set it tofalse
.- Parameters:
fill
-- Returns:
- the instance of
PolygonStyle
on which this method was called. Useful for a fluent API.
-
getFillColor
-
setFillColor
Set fill color.- Parameters:
fillColor
- String representation of the rgb code- Returns:
- the instance of
PolygonStyle
on which this method was called. Useful for a fluent API.
-
getFillOpacity
-
setFillOpacity
Set fill opacity.- Parameters:
fillOpacity
- double value in the range between 0.0 (fully transparent) to 1.0 (fully opaque)- Returns:
- the instance of
PolygonStyle
on which this method was called. Useful for a fluent API.
-
setStrokeColor
Description copied from class:PolylineStyle
Sets stroke color.- Overrides:
setStrokeColor
in classPolylineStyle
- Parameters:
strokeColor
- String representation of the rgb code- Returns:
- the instance of
PolylineStyle
on which this method was called. Useful for a fluent API.
-
setStrokeOpacity
Description copied from class:PolylineStyle
Sets stroke opacity.- Overrides:
setStrokeOpacity
in classPolylineStyle
- Parameters:
strokeOpacity
- double value in the range between 0.0 (fully transparent) to 1.0 (fully opaque)- Returns:
- the instance of
PolylineStyle
on which this method was called. Useful for a fluent API.
-
setStrokeWeight
Description copied from class:PolylineStyle
Sets stroke width in pixels.- Overrides:
setStrokeWeight
in classPolylineStyle
- Returns:
- the instance of
PolylineStyle
on which this method was called. Useful for a fluent API.
-
setDashArray
Description copied from class:PolylineStyle
Sets the stroke dash-pattern.For more information about the pattern see link.
- Overrides:
setDashArray
in classPolylineStyle
- Returns:
- the instance of
PolylineStyle
on which this method was called. Useful for a fluent API.
-
setLineCap
Description copied from class:PolylineStyle
Sets shape to be used at the end of the stroke.For more information about the options see link.
- Overrides:
setLineCap
in classPolylineStyle
- Returns:
- the instance of
PolylineStyle
on which this method was called. Useful for a fluent API.
-
setLineJoin
Description copied from class:PolylineStyle
Sets shape to be used at the corners of the stroke.For more information about the options see link.
- Overrides:
setLineJoin
in classPolylineStyle
- Returns:
- the instance of
PolylineStyle
on which this method was called. Useful for a fluent API.
-