Class PolygonStyle

java.lang.Object
io.jmix.mapsflowui.kit.component.model.style.PolygonStyle

public class PolygonStyle extends Object
Helper class for styling polygon Feature.
  • Field Details

    • style

      protected Style style
  • Constructor Details

    • PolygonStyle

      public PolygonStyle()
  • Method Details

    • withStroke

      public PolygonStyle withStroke(Stroke stroke)
      Sets stroke style for feature. It describes line styling: width, color, dash, etc.

      Delegates to Style.setStroke(Stroke).

      Parameters:
      stroke - stroke to set
      Returns:
      current instance
    • withFill

      public PolygonStyle withFill(Fill fill)
      Sets fill object that describes which color should be used for filling feature.

      Delegates to Style.setFill(Fill).

      Parameters:
      fill - fill to set
      Returns:
      current instance
    • withZIndex

      public PolygonStyle withZIndex(Integer zIndex)
      Sets Z-index to style. It is used to order styles added to the feature.

      Delegates to Style.setZIndex(Integer).

      Parameters:
      zIndex - z-index to set
      Returns:
      current instance
    • build

      public Style build()
      Returns:
      Style object