java.lang.Object
io.jmix.mapsflowui.kit.component.model.MapObservableObject
io.jmix.mapsflowui.kit.component.model.style.Fill
All Implemented Interfaces:
Serializable

public class Fill extends MapObservableObject
Fill style for vector features.

For more details see: Fill docs

See Also:
  • Field Details

    • color

      protected String color
  • Constructor Details

    • Fill

      public Fill()
    • Fill

      public Fill(String color)
      Inits instance with provided color. See setColor(String) for available values.
      Parameters:
      color - color to set
  • Method Details

    • getType

      protected String getType()
      Specified by:
      getType in class MapObservableObject
    • getColor

      public String getColor()
    • setColor

      public void setColor(String color)
      Sets the color to fill. Color is available in the following formats:
      • HEX "#5E4BD8"
      • RGB "rgb(205, 92, 92)"
      • RGBA "rgba(205, 92, 92, 0.4)".

      For more details see: setColor() docs

      Parameters:
      color - color to set
    • withColor

      public Fill withColor(String color)
      Parameters:
      color - color to set
      Returns:
      current instance