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
Constructors -
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
PolygonStyleon 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
PolygonStyleon 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
PolygonStyleon 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
PolygonStyleon which this method was called. Useful for a fluent API.
-
setStrokeColor
Description copied from class:PolylineStyleSets stroke color.- Overrides:
setStrokeColorin classPolylineStyle- Parameters:
strokeColor- String representation of the rgb code- Returns:
- the instance of
PolylineStyleon which this method was called. Useful for a fluent API.
-
setStrokeOpacity
Description copied from class:PolylineStyleSets stroke opacity.- Overrides:
setStrokeOpacityin classPolylineStyle- Parameters:
strokeOpacity- double value in the range between 0.0 (fully transparent) to 1.0 (fully opaque)- Returns:
- the instance of
PolylineStyleon which this method was called. Useful for a fluent API.
-
setStrokeWeight
Description copied from class:PolylineStyleSets stroke width in pixels.- Overrides:
setStrokeWeightin classPolylineStyle- Returns:
- the instance of
PolylineStyleon which this method was called. Useful for a fluent API.
-
setDashArray
Description copied from class:PolylineStyleSets the stroke dash-pattern.For more information about the pattern see link.
- Overrides:
setDashArrayin classPolylineStyle- Returns:
- the instance of
PolylineStyleon which this method was called. Useful for a fluent API.
-
setLineCap
Description copied from class:PolylineStyleSets shape to be used at the end of the stroke.For more information about the options see link.
- Overrides:
setLineCapin classPolylineStyle- Returns:
- the instance of
PolylineStyleon which this method was called. Useful for a fluent API.
-
setLineJoin
Description copied from class:PolylineStyleSets shape to be used at the corners of the stroke.For more information about the options see link.
- Overrides:
setLineJoinin classPolylineStyle- Returns:
- the instance of
PolylineStyleon which this method was called. Useful for a fluent API.
-