Class ImageStyle
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
Abstract base class for drawing image-based features
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
propertyChangeSupport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
The opacity of the image.double
The rotation of the image in radians.double
getScale()
The scaling of the image's size.boolean
Whether to rotate the image together with the view.void
setOpacity
(double opacity) Sets the opacity for the image.void
setRotateWithView
(boolean rotateWithView) Sets whether to rotate the image together with the view.void
setRotation
(double rotation) Sets the rotation of the image in radians.void
setScale
(double scale) Sets the scaling of the image's size.Methods inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
addChild, addPropertyChangeListener, collectChanges, deepMarkAsDirty, getId, getType, markAsDirty, notifyChange, notifyChange, removeChild, removePropertyChangeListener, setId, update
-
Constructor Details
-
ImageStyle
-
-
Method Details
-
getOpacity
public double getOpacity()The opacity of the image. Value values range from0
to1
. Defaults to1
.- 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 tofalse
. -
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 to0
.- 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 to1
.- Returns:
- the current scaling
-
setScale
public void setScale(double scale) Sets the scaling of the image's size.- Parameters:
scale
- the new scaling
-