Class Style
java.lang.Object
com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
com.vaadin.flow.component.map.configuration.style.Style
- All Implemented Interfaces:
Serializable
Defines how to visually represent a
Feature
- See Also:
-
Field Summary
Fields inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
propertyChangeSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFill()
getImage()
The text style used for rendering texts, such as feature texts.getType()
The unique type name of this class.void
void
setImage
(ImageStyle image) void
void
setTextStyle
(TextStyle textStyle) Sets the text style to use for rendering texts, such as feature texts.Methods inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
addChild, addNullableChild, addPropertyChangeListener, collectChanges, deepMarkAsDirty, getId, markAsDirty, notifyChange, notifyChange, removeChild, removePropertyChangeListener, setId, update
-
Constructor Details
-
Style
public Style()
-
-
Method Details
-
getType
Description copied from class:AbstractConfigurationObject
The unique type name of this class. Used by the client-side synchronization mechanism to determine which OpenLayers class to synchronize into.- Specified by:
getType
in classAbstractConfigurationObject
-
getImage
-
setImage
-
getFill
-
setFill
-
getStroke
-
setStroke
-
getTextStyle
The text style used for rendering texts, such as feature texts. This isnull
by default, which means that a default text style will be used instead.- Returns:
- the text style, or
null
if no text style is defined
-
setTextStyle
Sets the text style to use for rendering texts, such as feature texts. Set this tonull
to clear the text style and use a default text style instead.- Parameters:
textStyle
- the new text style, ornull
-