Class PolygonStyle


public class PolygonStyle extends PolylineStyle
Class representing style parameters for a polygon.
  • Constructor Details

    • PolygonStyle

      public PolygonStyle()
  • Method Details

    • getStroke

      public Boolean getStroke()
    • setStroke

      public PolygonStyle setStroke(Boolean stroke)
      Set whether to draw stroke along the path. To disable borders set it to false.
      Parameters:
      stroke -
      Returns:
      the instance of PolygonStyle on which this method was called. Useful for a fluent API.
    • getFill

      public Boolean getFill()
    • setFill

      public PolygonStyle setFill(Boolean fill)
      Set whether to fill the path with color. To disable filling set it to false.
      Parameters:
      fill -
      Returns:
      the instance of PolygonStyle on which this method was called. Useful for a fluent API.
    • getFillColor

      public String getFillColor()
    • setFillColor

      public PolygonStyle setFillColor(String fillColor)
      Set fill color.
      Parameters:
      fillColor - String representation of the rgb code
      Returns:
      the instance of PolygonStyle on which this method was called. Useful for a fluent API.
    • getFillOpacity

      public Double getFillOpacity()
    • setFillOpacity

      public PolygonStyle setFillOpacity(Double fillOpacity)
      Set fill opacity.
      Parameters:
      fillOpacity - double value in the range between 0.0 (fully transparent) to 1.0 (fully opaque)
      Returns:
      the instance of PolygonStyle on which this method was called. Useful for a fluent API.
    • setStrokeColor

      public PolygonStyle setStrokeColor(String strokeColor)
      Description copied from class: PolylineStyle
      Sets stroke color.
      Overrides:
      setStrokeColor in class PolylineStyle
      Parameters:
      strokeColor - String representation of the rgb code
      Returns:
      the instance of PolylineStyle on which this method was called. Useful for a fluent API.
    • setStrokeOpacity

      public PolygonStyle setStrokeOpacity(Double strokeOpacity)
      Description copied from class: PolylineStyle
      Sets stroke opacity.
      Overrides:
      setStrokeOpacity in class PolylineStyle
      Parameters:
      strokeOpacity - double value in the range between 0.0 (fully transparent) to 1.0 (fully opaque)
      Returns:
      the instance of PolylineStyle on which this method was called. Useful for a fluent API.
    • setStrokeWeight

      public PolygonStyle setStrokeWeight(Integer strokeWeight)
      Description copied from class: PolylineStyle
      Sets stroke width in pixels.
      Overrides:
      setStrokeWeight in class PolylineStyle
      Returns:
      the instance of PolylineStyle on which this method was called. Useful for a fluent API.
    • setDashArray

      public PolygonStyle setDashArray(String dashArray)
      Description copied from class: PolylineStyle
      Sets the stroke dash-pattern.

      For more information about the pattern see link.

      Overrides:
      setDashArray in class PolylineStyle
      Returns:
      the instance of PolylineStyle on which this method was called. Useful for a fluent API.
    • setLineCap

      public PolygonStyle setLineCap(String lineCap)
      Description copied from class: PolylineStyle
      Sets shape to be used at the end of the stroke.

      For more information about the options see link.

      Overrides:
      setLineCap in class PolylineStyle
      Returns:
      the instance of PolylineStyle on which this method was called. Useful for a fluent API.
    • setLineJoin

      public PolygonStyle setLineJoin(String lineJoin)
      Description copied from class: PolylineStyle
      Sets shape to be used at the corners of the stroke.

      For more information about the options see link.

      Overrides:
      setLineJoin in class PolylineStyle
      Returns:
      the instance of PolylineStyle on which this method was called. Useful for a fluent API.