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

public abstract class ImageStyle extends MapObservableObject
Base class for styling icon, circle and shapes.

For more details see: ImageStyle docs

See Also:
  • Field Details

    • opacity

      protected Double opacity
    • rotateWithView

      protected Boolean rotateWithView
    • rotation

      protected Double rotation
    • scale

      protected Double scale
    • scaleSize

      protected Size scaleSize
    • displacement

      protected Displacement displacement
    • declutterMode

      protected DeclutterMode declutterMode
  • Constructor Details

    • ImageStyle

      public ImageStyle()
  • Method Details

    • getOpacity

      protected Double getOpacity()
      Returns:
      opacity or null if not set
    • setOpacity

      protected void setOpacity(Double opacity)
      Sets the opacity.

      For more details see: setOpacity() docs

      Parameters:
      opacity - opacity to set
    • getRotateWithView

      protected Boolean getRotateWithView()
      Returns:
      whether the image should get rotated with the map view or null if not set
    • setRotateWithView

      protected void setRotateWithView(Boolean rotateWithView)
      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

      protected Double getRotation()
      Returns:
      rotation value or null if not set
    • setRotation

      protected void setRotation(Double rotation)
      Sets the rotation value.

      For more details see: setRotation() docs

      Parameters:
      rotation - rotation value
    • getScale

      protected Double getScale()
      Returns:
      scale value or null if not set
    • setScale

      protected void setScale(Double scale)
      Sets the scale. Note, if setScaleSize(Size) is set, it will take precedence over the scale.

      For more details see: setScale() docs

      Parameters:
      scale - scale value
    • getScaleSize

      protected Size getScaleSize()
      Returns:
      scale size or null if not set
    • setScaleSize

      protected void setScaleSize(Size scaleSize)
      Sets the scale size. Note, it takes precedence over the setScale(Double).

      For more details see: setScale() docs

      Parameters:
      scaleSize - scale size
    • getDisplacement

      protected Displacement getDisplacement()
      Returns:
      displacement value or null if not set
    • setDisplacement

      protected void setDisplacement(Displacement displacement)
      Sets the displacement.

      For more details see: setDisplacement() docs

      Parameters:
      displacement - displacement value
    • getDeclutterMode

      protected DeclutterMode getDeclutterMode()
      Returns:
      declutter mode or null if not set
    • setDeclutterMode

      protected void setDeclutterMode(DeclutterMode declutterMode)
      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