com.vaadin.flow.component.map.configuration.style.
Class ImageStyle
All Implemented Interfaces:
Direct Known Subclasses:
Abstract base class for drawing image-based features
See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
propertyChangeSupport
-
Constructor Summary
Constructors -
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, addNullableChild, 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 from
0
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 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
-