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 SummaryNested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObjectMapObservableObject.ObjectChangeEvent
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Stringprotected LineCapprotected Doubleprotected LineJoinprotected Doubleprotected DoubleFields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObjectchildren, dirty, eventBus, listener, metaProperties, parent, removedChildren, syncId
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetColor()protected StringgetType()getWidth()voidSets the color.voidsetLineCap(LineCap lineCap) Sets line cap style.voidsetLineDash(List<Double> lineDash) Sets the line dash pattern.voidsetLineDashOffset(Double lineDashOffset) Sets the line dash offset.voidsetLineJoin(LineJoin lineJoin) Sets line join style.voidsetMiterLimit(Double miterLimit) Sets the miter limit.protected voidsetParent(MapObservableObject parent) voidSets 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.MapObservableObjectaddChild, 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- 
Strokepublic Stroke()
 
- 
- 
Method Details- 
getType- Specified by:
- getTypein class- MapObservableObject
 
- 
getColor- Returns:
- color value or nullif not set
 
- 
setColorSets the color. If not definedblackwill 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
 
- 
withColorSeesetColor(String).- Parameters:
- color- color value
- Returns:
- current instance
 
- 
getLineCap- Returns:
- line cap value or nullif not set
 
- 
setLineCapSets line cap style. The default value isLineCap.ROUND.For more details see: setLineCap() docs - Parameters:
- lineCap- line cap value
 
- 
withLineCapSeesetLineCap(LineCap).- Parameters:
- lineCap- line cap value
- Returns:
- current instance
 
- 
getLineJoin- Returns:
- line join value or nullif not set
 
- 
setLineJoinSets 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 nullif not set
 
- 
setLineDashSets the line dash pattern. By default, stroke without dash.For more details see: setLineDash() docs - Parameters:
- lineDash- line dash pattern
 
- 
withLineDashSeesetLineDash(List).- Parameters:
- lineDash- line dash pattern
- Returns:
- current instance
 
- 
getLineDashOffset- Returns:
- line dash offset value or nullif not set
 
- 
setLineDashOffsetSets 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 nullif not set
 
- 
setMiterLimitSets 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 nullif not set
 
- 
setWidthSets stroke width.For more details see: setWidth() docs - Parameters:
- width- stroke width
 
- 
withWidthSeesetWidth(Double).- Parameters:
- width- stroke width
- Returns:
- current instance
 
- 
setParent- Overrides:
- setParentin class- MapObservableObject
 
 
-