com.vaadin.flow.component.map.configuration.style.
Class ImageStyle
- java.lang.Object
-
- com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
-
- com.vaadin.flow.component.map.configuration.style.ImageStyle
-
All Implemented Interfaces:
Direct Known Subclasses:
public abstract class ImageStyle extends AbstractConfigurationObject
Abstract base class for drawing image-based features
See Also:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ImageStyle.Options
-
Field Summary
-
Fields inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description ImageStyle(ImageStyle.Options options)
-
Method Summary
All Methods Modifier and Type Method Description float
getOpacity()
The opacity of the image.
float
getRotation()
The rotation of the image in radians.
float
getScale()
The scaling of the image's size.
boolean
isRotateWithView()
Whether to rotate the image together with the view.
void
setOpacity(float opacity)
Sets the opacity for the image.
void
setRotateWithView(boolean rotateWithView)
Sets whether to rotate the image together with the view.
void
setRotation(float rotation)
Sets the rotation of the image in radians.
void
setScale(float 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 Detail
-
ImageStyle
public ImageStyle(ImageStyle.Options options)
-
-
Method Detail
-
getOpacity
public float getOpacity()
The opacity of the image. Value values range from
0
to1
. Defaults to1
.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
-
-