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.voidvoidsetImage(ImageStyle image) voidvoidsetTextStyle(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:AbstractConfigurationObjectThe unique type name of this class. Used by the client-side synchronization mechanism to determine which OpenLayers class to synchronize into.- Specified by:
getTypein classAbstractConfigurationObject
-
getImage
-
setImage
-
getFill
-
setFill
-
getStroke
-
setStroke
-
getTextStyle
The text style used for rendering texts, such as feature texts. This isnullby default, which means that a default text style will be used instead.- Returns:
- the text style, or
nullif no text style is defined
-
setTextStyle
Sets the text style to use for rendering texts, such as feature texts. Set this tonullto clear the text style and use a default text style instead.- Parameters:
textStyle- the new text style, ornull
-