Class CircleStyle
java.lang.Object
io.jmix.mapsflowui.kit.component.model.MapObservableObject
io.jmix.mapsflowui.kit.component.model.style.image.ImageStyle
io.jmix.mapsflowui.kit.component.model.style.image.AbstractRegularShape
io.jmix.mapsflowui.kit.component.model.style.image.CircleStyle
- All Implemented Interfaces:
Serializable
Circle style for vector features.
For more details see: CircleStyle docs
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
MapObservableObject.ObjectChangeEvent -
Field Summary
Fields inherited from class io.jmix.mapsflowui.kit.component.model.style.image.AbstractRegularShape
angle, fill, firstRadius, points, radius, secondRadius, strokeFields inherited from class io.jmix.mapsflowui.kit.component.model.style.image.ImageStyle
declutterMode, displacement, opacity, rotateWithView, rotation, scale, scaleSizeFields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
children, dirty, eventBus, listener, metaProperties, parent, removedChildren, syncId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFill()getScale()protected StringgetType()voidsetDeclutterMode(DeclutterMode declutterMode) Sets declutter mode.voidsetDisplacement(Displacement displacement) Sets the displacement.voidSets fill object that describes which color should be used for filling shape.voidSets the circle radius.voidsetRotateWithView(Boolean rotateWithView) Sets whether to rotate the shape with the map view (meaningful only when used in conjunction with a two-dimensional scale).voidsetRotation(Double rotation) Sets rotation in radians (positive rotation clockwise, meaningful only when used in conjunction with a two-dimensional scale).voidSets the scale.voidsetScaleSize(Size scaleSize) Sets the scale size.voidSets stroke style for regular shape.withDeclutterMode(DeclutterMode declutterMode) withDisplacement(Displacement displacement) SeesetFill(Fill).withRadius(Integer radius) SeesetRadius(Integer).withRotateWithView(Boolean rotateWithView) withRotation(Double rotation) SeesetRotation(Double).SeesetScale(Double).withScaleSize(Size scaleSize) SeesetScaleSize(Size).withStroke(Stroke stroke) SeesetStroke(Stroke).Methods inherited from class io.jmix.mapsflowui.kit.component.model.style.image.AbstractRegularShape
getAngle, getFirstRadius, getPoints, getSecondRadius, setAngle, setFirstRadius, setPoints, setSecondRadiusMethods inherited from class io.jmix.mapsflowui.kit.component.model.style.image.ImageStyle
getOpacity, setOpacityMethods 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, setParent, unmarkDirtyInDepth
-
Constructor Details
-
CircleStyle
public CircleStyle()
-
-
Method Details
-
getType
- Specified by:
getTypein classMapObservableObject
-
getFill
- Overrides:
getFillin classAbstractRegularShape- Returns:
- fill style or
nullif not set
-
setFill
Sets fill object that describes which color should be used for filling shape.For more details see: setFill() docs
- Overrides:
setFillin classAbstractRegularShape- Parameters:
fill- fill to set
-
withFill
SeesetFill(Fill).- Parameters:
fill- fill to set- Returns:
- current instance
-
getRadius
- Overrides:
getRadiusin classAbstractRegularShape- Returns:
- circle radius or
nullif not set
-
setRadius
Sets the circle radius.For more details see: setRadius() docs
- Overrides:
setRadiusin classAbstractRegularShape- Parameters:
radius- radius value
-
withRadius
SeesetRadius(Integer).- Parameters:
radius- radius value- Returns:
- current instance
-
getStroke
- Overrides:
getStrokein classAbstractRegularShape- Returns:
- stroke style or
nullif not set
-
setStroke
Sets stroke style for regular shape. It describes line styling: width, color, dash, etc.For more details see: setStroke() docs
- Overrides:
setStrokein classAbstractRegularShape- Parameters:
stroke- stroke style
-
withStroke
SeesetStroke(Stroke).- Parameters:
stroke- stroke style- Returns:
- current instance
-
getRotateWithView
- Overrides:
getRotateWithViewin classImageStyle- Returns:
- whether the image should get rotated with the map view or
nullif not set
-
setRotateWithView
Sets whether to rotate the shape with the map view (meaningful only when used in conjunction with a two-dimensional scale). The default value isfalse.For more details see: setRotateWithView() docs
- Overrides:
setRotateWithViewin classImageStyle- Parameters:
rotateWithView- whether the shape should be rotated
-
withRotateWithView
- Parameters:
rotateWithView- whether the shape should be rotated- Returns:
- current instance
-
getRotation
- Overrides:
getRotationin classImageStyle- Returns:
- rotation value or
nullif not set
-
setRotation
Sets rotation in radians (positive rotation clockwise, meaningful only when used in conjunction with a two-dimensional scale). The default value is0.For more details see: setRotation() docs
- Overrides:
setRotationin classImageStyle- Parameters:
rotation- rotation value
-
withRotation
SeesetRotation(Double).- Parameters:
rotation- rotation value- Returns:
- current instance
-
getScale
- Overrides:
getScalein classImageStyle- Returns:
- scale value or
nullif not set
-
setScale
Sets the scale. A two-dimensional scale will produce an ellipse. Unless two-dimensional scaling is required a better result may be obtained with an appropriate setting forsetRadius(Integer). The default value is1. Note, ifsetScaleSize(Size)is set, it will take precedence over the scale.For more details see: setScale() docs
- Overrides:
setScalein classImageStyle- Parameters:
scale- scale value
-
withScale
SeesetScale(Double).- Parameters:
scale- scale value- Returns:
- current instance
-
getScaleSize
- Overrides:
getScaleSizein classImageStyle- Returns:
- scale size or
nullif not set
-
setScaleSize
Sets the scale size. Note, it takes precedence over theImageStyle.setScale(Double).For more details see: setScale() docs
- Overrides:
setScaleSizein classImageStyle- Parameters:
scaleSize- scale size
-
withScaleSize
SeesetScaleSize(Size).- Parameters:
scaleSize- scale size- Returns:
- current instance
-
getDisplacement
- Overrides:
getDisplacementin classImageStyle- Returns:
- displacement value or
nullif not set
-
setDisplacement
Sets the displacement.For more details see: setDisplacement() docs
- Overrides:
setDisplacementin classImageStyle- Parameters:
displacement- displacement value
-
withDisplacement
- Parameters:
displacement-- Returns:
- current instance
-
getDeclutterMode
- Overrides:
getDeclutterModein classImageStyle- Returns:
- declutter mode or
nullif not set
-
setDeclutterMode
Sets declutter mode.Note, declutter mode attribute is set only at creation time and cannot be changed at runtime.
For more details see: ImageStyle docs
- Overrides:
setDeclutterModein classImageStyle- Parameters:
declutterMode- declutter mode value
-
withDeclutterMode
- Parameters:
declutterMode- declutter mode value- Returns:
- current instance
-