Class ImageStyle
java.lang.Object
io.jmix.mapsflowui.kit.component.model.MapObservableObject
io.jmix.mapsflowui.kit.component.model.style.image.ImageStyle
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractRegularShape
,IconStyle
Base class for styling icon, circle and shapes.
For more details see: ImageStyle 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 DeclutterMode
protected Displacement
protected Double
protected Boolean
protected Double
protected Double
protected Size
Fields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
children, dirty, eventBus, listener, metaProperties, removedChildren, syncId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DeclutterMode
protected Displacement
protected Double
protected Boolean
protected Double
protected Double
getScale()
protected Size
protected void
setDeclutterMode
(DeclutterMode declutterMode) Sets declutter mode.protected void
setDisplacement
(Displacement displacement) Sets the displacement.protected void
setOpacity
(Double opacity) Sets the opacity.protected void
setRotateWithView
(Boolean rotateWithView) Sets whether the styled image should be rotated with the map view rotation.protected void
setRotation
(Double rotation) Sets the rotation value.protected void
Sets the scale.protected void
setScaleSize
(Size scaleSize) Sets the scale size.Methods inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
addChild, addListener, clearRemovedChildren, clearRemovedChildrenInDepth, equals, fireChangeEvent, getChildren, getEventBus, getMetaProperties, getRemovedChildren, getSyncId, getType, hashCode, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setMapObjectChangeListener, setMetaProperty, unmarkDirtyInDepth
-
Field Details
-
opacity
-
rotateWithView
-
rotation
-
scale
-
scaleSize
-
displacement
-
declutterMode
-
-
Constructor Details
-
ImageStyle
public ImageStyle()
-
-
Method Details
-
getOpacity
- Returns:
- opacity or
null
if not set
-
setOpacity
Sets the opacity.For more details see: setOpacity() docs
- Parameters:
opacity
- opacity to set
-
getRotateWithView
- Returns:
- whether the image should get rotated with the map view or
null
if not set
-
setRotateWithView
Sets whether the styled image should be rotated with the map view rotation.For more details see: setRotateWithView() docs
- Parameters:
rotateWithView
- whether the styled image should be rotated
-
getRotation
- Returns:
- rotation value or
null
if not set
-
setRotation
Sets the rotation value.For more details see: setRotation() docs
- Parameters:
rotation
- rotation value
-
getScale
- Returns:
- scale value or
null
if not set
-
setScale
Sets the scale. Note, ifsetScaleSize(Size)
is set, it will take precedence over the scale.For more details see: setScale() docs
- Parameters:
scale
- scale value
-
getScaleSize
- Returns:
- scale size or
null
if not set
-
setScaleSize
Sets the scale size. Note, it takes precedence over thesetScale(Double)
.For more details see: setScale() docs
- Parameters:
scaleSize
- scale size
-
getDisplacement
- Returns:
- displacement value or
null
if not set
-
setDisplacement
Sets the displacement.For more details see: setDisplacement() docs
- Parameters:
displacement
- displacement value
-
getDeclutterMode
- 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
- Parameters:
declutterMode
- declutter mode value
-