You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.map.configuration.style.

Class ImageStyle

    • Method Detail

      • getOpacity

        public float getOpacity()

        The opacity of the image. Value values range from 0 to 1. Defaults to 1.

        Returns:

        the current opacity

      • setOpacity

        public void setOpacity​(float 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 float getRotation()

        The rotation of the image in radians. Defaults to 0.

        Returns:

        the current rotation

      • setRotation

        public void setRotation​(float rotation)

        Sets the rotation of the image in radians.

        Parameters:

        rotation - the new rotation

      • getScale

        public float getScale()

        The scaling of the image's size. Defaults to 1.

        Returns:

        the current scaling

      • setScale

        public void setScale​(float scale)

        Sets the scaling of the image's size.

        Parameters:

        scale - the new scaling