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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected LineCapprotected Doubleprotected LineJoinprotected Doubleprotected DoubleFields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
children, dirty, eventBus, metaProperties, parent, removedChildren, syncId -
Constructor Summary
Constructors -
Method Summary
Modifier 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.MapObservableObject
addChild, addListener, clearRemovedChildren, clearRemovedChildrenInDepth, equals, fireChangeEvent, getChildren, getEventBus, getMetaProperties, getRemovedChildren, getSuperParent, getSyncId, hashCode, isAttachedToMap, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setMetaProperty, unmarkDirtyInDepth
-
Field Details
-
color
-
lineCap
-
lineJoin
-
lineDash
-
lineDashOffset
-
miterLimit
-
width
-
-
Constructor Details
-
Stroke
public Stroke()
-
-
Method Details
-
getType
- Specified by:
getTypein classMapObservableObject
-
getColor
- Returns:
- color value or
nullif not set
-
setColor
Sets 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
-
withColor
SeesetColor(String).- Parameters:
color- color value- Returns:
- current instance
-
getLineCap
- Returns:
- line cap value or
nullif 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
nullif 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
nullif 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
nullif 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
nullif 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
nullif 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
-
setParent
- Overrides:
setParentin classMapObservableObject
-