java.lang.Object
com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
com.vaadin.flow.component.map.configuration.style.Style
All Implemented Interfaces:
Serializable

public class Style extends AbstractConfigurationObject
Defines how to visually represent a Feature
See Also:
  • Constructor Details

    • Style

      public Style()
  • Method Details

    • getType

      public String 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 class AbstractConfigurationObject
    • getImage

      public ImageStyle getImage()
    • setImage

      public void setImage(ImageStyle image)
    • getFill

      public Fill getFill()
    • setFill

      public void setFill(Fill fill)
    • getStroke

      public Stroke getStroke()
    • setStroke

      public void setStroke(Stroke stroke)
    • getTextStyle

      public TextStyle getTextStyle()
      The text style used for rendering texts, such as feature texts. This is null 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

      public void setTextStyle(TextStyle textStyle)
      Sets the text style to use for rendering texts, such as feature texts. Set this to null to clear the text style and use a default text style instead.
      Parameters:
      textStyle - the new text style, or null