Class Stroke
java.lang.Object
io.jmix.mapsflowui.kit.component.model.MapObservableObject
io.jmix.mapsflowui.kit.component.model.style.stroke.Stroke
- All Implemented Interfaces:
Serializable
Stroke style for vector features.
For more details see: Stroke() docs
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
MapObservableObject.ObjectChangeEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected LineCap
protected Double
protected LineJoin
protected Double
protected Double
Fields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
children, dirty, eventBus, listener, metaProperties, removedChildren, syncId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
protected String
getType()
getWidth()
void
Sets the color.void
setLineCap
(LineCap lineCap) Sets line cap style.void
setLineDash
(List<Double> lineDash) Sets the line dash pattern.void
setLineDashOffset
(Double lineDashOffset) Sets the line dash offset.void
setLineJoin
(LineJoin lineJoin) Sets line join style.void
setMiterLimit
(Double miterLimit) Sets the miter limit.void
Sets stroke width.SeesetColor(String)
.withLineCap
(LineCap lineCap) SeesetLineCap(LineCap)
.withLineDash
(List<Double> lineDash) SeesetLineDash(List)
.withLineDashOffset
(Double lineDashOffset) withLineJoin
(LineJoin lineJoin) withMiterLimit
(Double miterLimit) SeesetWidth(Double)
.Methods inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
addChild, addListener, clearRemovedChildren, clearRemovedChildrenInDepth, equals, fireChangeEvent, getChildren, getEventBus, getMetaProperties, getRemovedChildren, getSyncId, hashCode, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setMapObjectChangeListener, setMetaProperty, unmarkDirtyInDepth
-
Field Details
-
color
-
lineCap
-
lineJoin
-
lineDash
-
lineDashOffset
-
miterLimit
-
width
-
-
Constructor Details
-
Stroke
public Stroke()
-
-
Method Details
-
getType
- Specified by:
getType
in classMapObservableObject
-
getColor
- Returns:
- color value or
null
if not set
-
setColor
Sets the color. If not definedblack
will be used. Color is available in the following formats:- HEX "#5E4BD8"
- RGB "rgb(205, 92, 92)"
- RGBA "rgba(205, 92, 92, 0.4)".
- Parameters:
color
- color value
-
withColor
SeesetColor(String)
.- Parameters:
color
- color value- Returns:
- current instance
-
getLineCap
- Returns:
- line cap value or
null
if not set
-
setLineCap
Sets line cap style. The default value isLineCap.ROUND
.For more details see: setLineCap() docs
- Parameters:
lineCap
- line cap value
-
withLineCap
SeesetLineCap(LineCap)
.- Parameters:
lineCap
- line cap value- Returns:
- current instance
-
getLineJoin
- Returns:
- line join value or
null
if not set
-
setLineJoin
Sets line join style. The default value isLineJoin.ROUND
.For more details see: setLineJoin() docs
- Parameters:
lineJoin
- line join value
-
withLineJoin
- Parameters:
lineJoin
- line join value- Returns:
- current instance
-
getLineDash
- Returns:
- line dash pattern or
null
if not set
-
setLineDash
Sets the line dash pattern. By default, stroke without dash.For more details see: setLineDash() docs
- Parameters:
lineDash
- line dash pattern
-
withLineDash
SeesetLineDash(List)
.- Parameters:
lineDash
- line dash pattern- Returns:
- current instance
-
getLineDashOffset
- Returns:
- line dash offset value or
null
if not set
-
setLineDashOffset
Sets the line dash offset. The default value is0
.For more details see: setLineDashOffset() docs
- Parameters:
lineDashOffset
- line dash offset value
-
withLineDashOffset
- Parameters:
lineDashOffset
- line dash offset value- Returns:
- current instance
-
getMiterLimit
- Returns:
- miter limit value or
null
if not set
-
setMiterLimit
Sets the miter limit. It defines a limit on the ratio of the miter value to thesetWidth(Double)
used to draw a miter join. When the limit is exceeded, the join is converted from a miter to a bevel. Used withLineJoin.MITER
. The default value is10
.For more details see: setMiterLimit() docs
- Parameters:
miterLimit
- miter limit value
-
withMiterLimit
- Parameters:
miterLimit
- miter limit value- Returns:
- current instance
-
getWidth
- Returns:
- stroke width or
null
if not set
-
setWidth
Sets stroke width.For more details see: setWidth() docs
- Parameters:
width
- stroke width
-
withWidth
SeesetWidth(Double)
.- Parameters:
width
- stroke width- Returns:
- current instance
-