Package com.massifmaps.styles
Class PolygonStyleBuilder
java.lang.Object
com.massifmaps.styles.StyleBuilder
com.massifmaps.styles.PolygonStyleBuilder
A builder class for PolygonStyle.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a PolygonStyleBuilder object with all parameters set to defaults. -
Method Summary
Modifier and TypeMethodDescriptionBuilds a new instance of the PolygonStyle object using previously set parameters.Returns the line style of the edges of the polygon.voidsetLineStyle(LineStyle lineStyle) Sets the line style that will be used to draw the edges of the polygon.Methods inherited from class com.massifmaps.styles.StyleBuilder
equals, getColor, hashCode, setColor
-
Constructor Details
-
PolygonStyleBuilder
public PolygonStyleBuilder()Constructs a PolygonStyleBuilder object with all parameters set to defaults.
-
-
Method Details
-
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
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
Builds a new instance of the PolygonStyle object using previously set parameters.- Returns:
- A new PolygonStyle object.
-