java.lang.Object
com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
com.vaadin.flow.component.map.configuration.style.ImageStyle
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Icon

public abstract class ImageStyle extends AbstractConfigurationObject
Abstract base class for drawing image-based features
See Also:
  • Constructor Details

  • Method Details

    • getOpacity

      public double getOpacity()
      The opacity of the image. Value values range from 0 to 1. Defaults to 1.
      Returns:
      the current opacity
    • setOpacity

      public void setOpacity(double opacity)
      Sets the opacity for the image.
      Parameters:
      opacity - the new opacity
    • isRotateWithView

      public boolean isRotateWithView()
      Whether to rotate the image together with the view. Defaults to false.
    • setRotateWithView

      public void setRotateWithView(boolean rotateWithView)
      Sets whether to rotate the image together with the view.
    • getRotation

      public double getRotation()
      The rotation of the image in radians. Defaults to 0.
      Returns:
      the current rotation
    • setRotation

      public void setRotation(double rotation)
      Sets the rotation of the image in radians.
      Parameters:
      rotation - the new rotation
    • getScale

      public double getScale()
      The scaling of the image's size. Defaults to 1.
      Returns:
      the current scaling
    • setScale

      public void setScale(double scale)
      Sets the scaling of the image's size.
      Parameters:
      scale - the new scaling