public class

PolygonStyleBuilder

extends StyleBuilder
java.lang.Object
   ↳ com.carto.styles.StyleBuilder
     ↳ com.carto.styles.PolygonStyleBuilder

Class Overview

A builder class for PolygonStyle.

Summary

Public Constructors
PolygonStyleBuilder()
Constructs a PolygonStyleBuilder object with all parameters set to defaults.
Public Methods
PolygonStyle buildStyle()
Builds a new instance of the PolygonStyle object using previously set parameters.
synchronized void delete()
LineStyle getLineStyle()
Returns the line style of the edges of the polygon.
void setLineStyle(LineStyle lineStyle)
Sets the line style that will be used to draw the edges of the polygon.
[Expand]
Inherited Methods
From class com.carto.styles.StyleBuilder
From class java.lang.Object

Public Constructors

public PolygonStyleBuilder ()

Constructs a PolygonStyleBuilder object with all parameters set to defaults.

Public Methods

public PolygonStyle buildStyle ()

Builds a new instance of the PolygonStyle object using previously set parameters.

Returns
  • A new PolygonStyle object.

public synchronized void delete ()

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.

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.