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, stroke
Fields inherited from class io.jmix.mapsflowui.kit.component.model.style.image.ImageStyle
declutterMode, displacement, opacity, rotateWithView, rotation, scale, scaleSize
Fields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
children, dirty, eventBus, listener, metaProperties, removedChildren, syncId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetFill()
getScale()
protected String
getType()
void
setDeclutterMode
(DeclutterMode declutterMode) Sets declutter mode.void
setDisplacement
(Displacement displacement) Sets the displacement.void
Sets fill object that describes which color should be used for filling shape.void
Sets the circle radius.void
setRotateWithView
(Boolean rotateWithView) Sets whether to rotate the shape with the map view (meaningful only when used in conjunction with a two-dimensional scale).void
setRotation
(Double rotation) Sets rotation in radians (positive rotation clockwise, meaningful only when used in conjunction with a two-dimensional scale).void
Sets the scale.void
setScaleSize
(Size scaleSize) Sets the scale size.void
Sets 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, setSecondRadius
Methods inherited from class io.jmix.mapsflowui.kit.component.model.style.image.ImageStyle
getOpacity, setOpacity
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
-
Constructor Details
-
CircleStyle
public CircleStyle()
-
-
Method Details
-
getType
- Specified by:
getType
in classMapObservableObject
-
getFill
- Overrides:
getFill
in classAbstractRegularShape
- Returns:
- fill style or
null
if not set
-
setFill
Sets fill object that describes which color should be used for filling shape.For more details see: setFill() docs
- Overrides:
setFill
in classAbstractRegularShape
- Parameters:
fill
- fill to set
-
withFill
SeesetFill(Fill)
.- Parameters:
fill
- fill to set- Returns:
- current instance
-
getRadius
- Overrides:
getRadius
in classAbstractRegularShape
- Returns:
- circle radius or
null
if not set
-
setRadius
Sets the circle radius.For more details see: setRadius() docs
- Overrides:
setRadius
in classAbstractRegularShape
- Parameters:
radius
- radius value
-
withRadius
SeesetRadius(Integer)
.- Parameters:
radius
- radius value- Returns:
- current instance
-
getStroke
- Overrides:
getStroke
in classAbstractRegularShape
- Returns:
- stroke style or
null
if not set
-
setStroke
Sets stroke style for regular shape. It describes line styling: width, color, dash, etc.For more details see: setStroke() docs
- Overrides:
setStroke
in classAbstractRegularShape
- Parameters:
stroke
- stroke style
-
withStroke
SeesetStroke(Stroke)
.- Parameters:
stroke
- stroke style- Returns:
- current instance
-
getRotateWithView
- Overrides:
getRotateWithView
in classImageStyle
- Returns:
- whether the image should get rotated with the map view or
null
if 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:
setRotateWithView
in classImageStyle
- Parameters:
rotateWithView
- whether the shape should be rotated
-
withRotateWithView
- Parameters:
rotateWithView
- whether the shape should be rotated- Returns:
- current instance
-
getRotation
- Overrides:
getRotation
in classImageStyle
- Returns:
- rotation value or
null
if 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:
setRotation
in classImageStyle
- Parameters:
rotation
- rotation value
-
withRotation
SeesetRotation(Double)
.- Parameters:
rotation
- rotation value- Returns:
- current instance
-
getScale
- Overrides:
getScale
in classImageStyle
- Returns:
- scale value or
null
if 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:
setScale
in classImageStyle
- Parameters:
scale
- scale value
-
withScale
SeesetScale(Double)
.- Parameters:
scale
- scale value- Returns:
- current instance
-
getScaleSize
- Overrides:
getScaleSize
in classImageStyle
- Returns:
- scale size or
null
if not set
-
setScaleSize
Sets the scale size. Note, it takes precedence over theImageStyle.setScale(Double)
.For more details see: setScale() docs
- Overrides:
setScaleSize
in classImageStyle
- Parameters:
scaleSize
- scale size
-
withScaleSize
SeesetScaleSize(Size)
.- Parameters:
scaleSize
- scale size- Returns:
- current instance
-
getDisplacement
- Overrides:
getDisplacement
in classImageStyle
- Returns:
- displacement value or
null
if not set
-
setDisplacement
Sets the displacement.For more details see: setDisplacement() docs
- Overrides:
setDisplacement
in classImageStyle
- Parameters:
displacement
- displacement value
-
withDisplacement
- Parameters:
displacement
-- Returns:
- current instance
-
getDeclutterMode
- Overrides:
getDeclutterMode
in classImageStyle
- Returns:
- declutter mode or
null
if 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:
setDeclutterMode
in classImageStyle
- Parameters:
declutterMode
- declutter mode value
-
withDeclutterMode
- Parameters:
declutterMode
- declutter mode value- Returns:
- current instance
-