Class PolygonStyleBuilder

java.lang.Object
com.massifmaps.styles.StyleBuilder
com.massifmaps.styles.PolygonStyleBuilder

public class PolygonStyleBuilder extends StyleBuilder
A builder class for PolygonStyle.
  • Constructor Details

    • PolygonStyleBuilder

      public PolygonStyleBuilder()
      Constructs a PolygonStyleBuilder object with all parameters set to defaults.
  • Method Details

    • getLineStyle

      public LineStyle getLineStyle()
      Returns the line style of the edges of the polygon.
      Returns:
      The line style of the edges of the polygon. May be null.
    • setLineStyle

      public void setLineStyle(LineStyle lineStyle)
      Sets the line style that will be used to draw the edges of the polygon. If null is passed
      no edges will be drawn. The default is null.
      Parameters:
      lineStyle - The new style for the edges of the polygon.
    • buildStyle

      public PolygonStyle buildStyle()
      Builds a new instance of the PolygonStyle object using previously set parameters.
      Returns:
      A new PolygonStyle object.